You are here

public function PropertyMetadata::getPropertyValue in Zircon Profile 8

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

Extracts the value of the property from the given container.

Parameters

mixed $containingValue The container to extract the property value from.:

Return value

mixed The value of the property.

Overrides PropertyMetadataInterface::getPropertyValue

File

vendor/symfony/validator/Mapping/PropertyMetadata.php, line 51

Class

PropertyMetadata
Stores all metadata needed for validating a class property.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getPropertyValue($object) {
  return $this
    ->getReflectionMember($object)
    ->getValue($object);
}