Exemplo n.º 1
0
 /**
  * The magic sleep method will be called by the PHP engine when this class
  * gets serialized. It returns an array with those properties that should be
  * cached for method instances.
  *
  * @return array(string)
  * @since  0.10.0
  */
 public function __sleep()
 {
     return array_merge(array('modifiers'), parent::__sleep());
 }
Exemplo n.º 2
0
 /**
  * The magic sleep method will be called by the PHP engine when this class
  * gets serialized. It returns an array with those properties that should be
  * cached for all function instances.
  *
  * @return array(string)
  * @since  0.10.0
  */
 public function __sleep()
 {
     return array_merge(array('context', 'namespaceName'), parent::__sleep());
 }