/** * (PHP 5 >= 5.1.0)<br/> * String representation of object * * @link http://php.net/manual/en/serializable.serialize.php * @return string the string representation of the object or null */ public function serialize() { return serialize(array('item' => $this->item->getId(), 'key' => $this->key, 'value' => $this->value)); }