serialize() public method

Implementation of Serializable::serialize()
public serialize ( ) : string
return string The serialized closure
コード例 #1
0
ファイル: SecureClosure.php プロジェクト: opis/closure
 /**
  * Override serialize method
  *
  * @return  string  The serialized closure
  */
 public function serialize()
 {
     if (static::$securityProvider === null) {
         throw new RuntimeException('You must set a security provider in order to use this class');
     }
     $data = parent::serialize();
     $data =& static::$securityProvider->sign($data);
     return serialize($data);
 }