예제 #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 all function instances.
  *
  * @return array(string)
  * @since 0.10.0
  */
 public function __sleep()
 {
     return array_merge(array('context', 'packageName'), parent::__sleep());
 }
예제 #2
0
파일: Method.php 프로젝트: KingNoosh/Teknik
 /**
  * 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());
 }