public function serialize($value) {
        if ($value instanceof SerializablePersonalDataValue) {
            return $this->serializePersonalDataValue($value);
        } elseif ($value instanceof SerializableValue) {
            return $this->serializeValue($value);
        }
        return $value;
    }
public function serialize($value) {
        if ($value instanceof SerializablePersonalDataValue) {
            return $this->serializePersonalDataValue($value);
        } elseif ($value instanceof SerializableValue) {
            return $this->serializeValue($value);
        }
        return $value;
    }
public function serialize ( $ value ) { if ( $ value instanceof SerializablePersonalDataValue ) { return $ this -> serializePersonalDataValue ( $ value ) ; } elseif ( $ value instanceof SerializableValue ) { return $ this -> serializeValue ( $ value ) ; } return $ value ; }
serialize a value object into its string-based persistence form

@param $value
@return array
serialize a value object into its string - based persistence form