public function ClassMetadata::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.

Overrides PropertyMetadataContainerInterface::getPropertyMetadata

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php, line 315

Class

ClassMetadata
Represents all the configured constraints on a given class.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getPropertyMetadata($property) {
  return $this->members[$property];
}