You are here

interface PropertyMetadataInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/PropertyMetadataInterface.php \Symfony\Component\Validator\PropertyMetadataInterface
  2. 8 vendor/symfony/validator/Mapping/PropertyMetadataInterface.php \Symfony\Component\Validator\Mapping\PropertyMetadataInterface
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/PropertyMetadataInterface.php \Symfony\Component\Validator\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

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

See also

MetadataInterface

1 file declares its use of PropertyMetadataInterface
PropertyMetadataInterface.php in vendor/symfony/validator/Mapping/PropertyMetadataInterface.php

File

vendor/symfony/validator/PropertyMetadataInterface.php, line 29

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. 2
MetadataInterface::findConstraints public function Returns all constraints for a given validation group. 2
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