You are here

public function MemberMetadata::__sleep in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/MemberMetadata.php \Symfony\Component\Validator\Mapping\MemberMetadata::__sleep()

Returns the names of the properties that should be serialized.

Return value

string[]

Overrides GenericMetadata::__sleep

File

vendor/symfony/validator/Mapping/MemberMetadata.php, line 114

Class

MemberMetadata
Stores all metadata needed for validating a class property.

Namespace

Symfony\Component\Validator\Mapping

Code

public function __sleep() {
  return array_merge(parent::__sleep(), array(
    'class',
    'name',
    'property',
  ));
}