/** * 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()); }
/** * 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()); }