/** * The magic sleep method will be called by PHP's runtime environment right * before an instance of this class gets serialized. It should return an * array with those property names that should be serialized for this class. * * @return array */ public function __sleep() { return array_merge(array('newName', 'newModifier'), parent::__sleep()); }
/** * The magic sleep method will be called by PHP's runtime environment right * before an instance of this class gets serialized. It should return an * array with those property names that should be serialized for this class. * * @return array(string) * @since 0.10.0 */ public function __sleep() { return array_merge(array('values'), parent::__sleep()); }