public function serialize()
    {
        $data = array();

        foreach (get_object_vars($this) as $propertyName => $propertyValue) {
            $data[$propertyName] = $propertyValue;
        }

        return serialize($data);
    }
public function serialize()
    {
        $data = array();

        foreach (get_object_vars($this) as $propertyName => $propertyValue) {
            $data[$propertyName] = $propertyValue;
        }

        return serialize($data);
    }
public function serialize ( ) { $ data = array ( ) ; foreach ( get_object_vars ( $ this ) as $ propertyName => $ propertyValue ) { $ data [ $ propertyName ] = $ propertyValue ; } return serialize ( $ data ) ; }
Implements of \Serializable
Implements of \ Serializable