You are here

public function ClassMetadata::__sleep in Plug 7

Returns the names of the properties that should be serialized.

Return value

string[]

Overrides GenericMetadata::__sleep

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php, line 171

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function __sleep() {
  $parentProperties = parent::__sleep();

  // Don't store the cascading strategy. Classes never cascade.
  unset($parentProperties[array_search('cascadingStrategy', $parentProperties)]);
  return array_merge($parentProperties, array(
    'getters',
    'groupSequence',
    'groupSequenceProvider',
    'members',
    'name',
    'properties',
    'defaultGroup',
  ));
}