interface PropertyMetadataContainerInterface

A container for {@link PropertyMetadataInterface} instances.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of PropertyMetadataContainerInterface

All classes that implement PropertyMetadataContainerInterface

2 files declare their use of PropertyMetadataContainerInterface
ClassMetadata.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
PropertyContainerMetadata.php in drupal/core/lib/Drupal/Core/TypedData/Validation/PropertyContainerMetadata.php
Contains \Drupal\Core\TypedData\Validation\PropertyContainerMetadata.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/PropertyMetadataContainerInterface.php, line 19

Namespace

Symfony\Component\Validator
View source
interface PropertyMetadataContainerInterface {

  /**
   * Check if there's any metadata attached to the given named property.
   *
   * @param string $property The property name.
   *
   * @return Boolean
   */
  public function hasPropertyMetadata($property);

  /**
   * 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>).
   *
   * @param string $property The property name.
   *
   * @return PropertyMetadataInterface[] A list of metadata instances. Empty if
   *                                     no metadata exists for the property.
   */
  public function getPropertyMetadata($property);

}

Members

Namesort descending Modifiers Type Description Overrides
PropertyMetadataContainerInterface::getPropertyMetadata public function Returns all metadata instances for the given named property. 2
PropertyMetadataContainerInterface::hasPropertyMetadata public function Check if there's any metadata attached to the given named property. 2