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 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>
Synopsis
interface PropertyMetadataInterface
extends MetadataInterface
{
- // methods
- public string getPropertyName()
- public mixed getPropertyValue()
- // Inherited methods from MetadataInterface
- public void accept()
- public array findConstraints()
Hierarchy
Extends
Implemented by
Methods
public
- getPropertyName() — Returns the name of the property.
- getPropertyValue() — Extracts the value of the property from the given container.
Inherited from Symfony\Component\Validator\MetadataInterface
public
- accept() — Implementation of the Visitor design pattern.
- findConstraints() — Returns all constraints for a given validation group.