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

Stores all metadata needed for validating the value of a class property.

Most importantly, the metadata stores the constraints against which the property's value should be validated.

Additionally, the metadata stores whether objects stored in the property should be validated against their class' metadata and whether traversable objects should be traversed or not.

@since 2.5 @author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of PropertyMetadataInterface

All classes that implement PropertyMetadataInterface

See also

MetadataInterface

CascadingStrategy

TraversalStrategy

2 files declare their use of PropertyMetadataInterface
ExecutionContext.php in lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php
RecursiveContextualValidator.php in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/PropertyMetadataInterface.php, line 34

Namespace

Symfony\Component\Validator\Mapping
View source
interface PropertyMetadataInterface extends MetadataInterface, LegacyPropertyMetadataInterface, ClassBasedInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
ClassBasedInterface::getClassName public function Returns the name of the backing PHP class. 2
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
MetadataInterface::getCascadingStrategy public function Returns the strategy for cascading objects. 1
MetadataInterface::getConstraints public function Returns all constraints of this element. 1
MetadataInterface::getTraversalStrategy public function Returns the strategy for traversing traversable objects. 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