/** * (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() { $nonce = $this->getNonce(); return serialize(array($this->id, $nonce, $this->parameters->serialize())); }