original_string: public function serialize($value) {
          if ($value instanceof SerializablePersonalDataValue) {
              return $this->serializePersonalDataValue($value);
          } elseif ($value instanceof SerializableValue) {
              return $this->serializeValue($value);
          }
          return $value;
      }
code: public function serialize($value) {
          if ($value instanceof SerializablePersonalDataValue) {
              return $this->serializePersonalDataValue($value);
          } elseif ($value instanceof SerializableValue) {
              return $this->serializeValue($value);
          }
          return $value;
      }
code_tokens: public function serialize ( $ value ) { if ( $ value instanceof SerializablePersonalDataValue ) { return $ this -> serializePersonalDataValue ( $ value ) ; } elseif ( $ value instanceof SerializableValue ) { return $ this -> serializeValue ( $ value ) ; } return $ value ; }
docstring: serialize a value object into its string-based persistence form
  
  @param $value
  @return array
docstring_tokens: serialize a value object into its string - based persistence form