4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator;
15 * A container for validation metadata of a property.
17 * What exactly you define as "property" is up to you. The validator expects
18 * implementations of {@link MetadataInterface} that contain constraints and
19 * optionally a list of named properties that also have constraints (and may
20 * have further sub properties). Such properties are mapped by implementations
23 * @author Bernhard Schussek <bschussek@gmail.com>
25 * @see MetadataInterface
26 * @deprecated since version 2.5, to be removed in 3.0.
27 * Use {@link Mapping\PropertyMetadataInterface} instead.
29 interface PropertyMetadataInterface extends MetadataInterface
32 * Returns the name of the property.
34 * @return string The property name
36 public function getPropertyName();
39 * Extracts the value of the property from the given container.
41 * @param mixed $containingValue The container to extract the property value from
43 * @return mixed The value of the property
45 public function getPropertyValue($containingValue);