コード例 #1
0
ファイル: ASTMethod.php プロジェクト: Jvbzephir/pdepend
 /**
  * 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());
 }
コード例 #2
0
ファイル: ASTFunction.php プロジェクト: n2bh/pdepend
 /**
  * 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());
 }