You are here

public function PropertyMetadataContainerInterface::getPropertyMetadata in Zircon Profile 8

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

Returns all metadata instances for the given named property.

If your implementation does not support properties, simply throw an exception in this method (for example a <tt>BadMethodCallException</tt>).

Parameters

string $property The property name.:

Return value

PropertyMetadataInterface[] A list of metadata instances. Empty if no metadata exists for the property.

1 method overrides PropertyMetadataContainerInterface::getPropertyMetadata()
ClassMetadata::getPropertyMetadata in vendor/symfony/validator/Mapping/ClassMetadata.php
Returns all metadata instances for the given named property.

File

vendor/symfony/validator/PropertyMetadataContainerInterface.php, line 44

Class

PropertyMetadataContainerInterface
A container for {@link PropertyMetadataInterface} instances.

Namespace

Symfony\Component\Validator

Code

public function getPropertyMetadata($property);