You are here

interface PropertyMetadataInterface in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/PropertyMetadataInterface.php \Symfony\Component\Validator\PropertyMetadataInterface
  2. 7 lib/Symfony/validator/Symfony/Component/Validator/Mapping/PropertyMetadataInterface.php \Symfony\Component\Validator\Mapping\PropertyMetadataInterface

A container for validation metadata of a property.

What exactly you define as "property" is up to you. The validator expects implementations of {@link MetadataInterface} that contain constraints and optionally a list of named properties that also have constraints (and may have further sub properties). Such properties are mapped by implementations of this interface.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of PropertyMetadataInterface

All classes that implement PropertyMetadataInterface

Deprecated

Deprecated since version 2.5, to be removed in Symfony 3.0. Use {@link Mapping\PropertyMetadataInterface} instead.

See also

MetadataInterface

1 file declares its use of PropertyMetadataInterface
PropertyMetadataInterface.php in lib/Symfony/validator/Symfony/Component/Validator/Mapping/PropertyMetadataInterface.php

File

lib/Symfony/validator/Symfony/Component/Validator/PropertyMetadataInterface.php, line 30

Namespace

Symfony\Component\Validator
View source
interface PropertyMetadataInterface extends MetadataInterface {

  /**
   * Returns the name of the property.
   *
   * @return string The property name.
   */
  public function getPropertyName();

  /**
   * Extracts the value of the property from the given container.
   *
   * @param mixed $containingValue The container to extract the property value from.
   *
   * @return mixed The value of the property.
   */
  public function getPropertyValue($containingValue);

}

Members

Namesort descending Modifiers Type Description Overrides
MetadataInterface::accept Deprecated public function Implementation of the Visitor design pattern. 1
MetadataInterface::findConstraints public function Returns all constraints for a given validation group. 1
PropertyMetadataInterface::getPropertyName public function Returns the name of the property. 1
PropertyMetadataInterface::getPropertyValue public function Extracts the value of the property from the given container. 3