Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Validator\Mapping; Chris@0: Chris@0: /** Chris@0: * Stores all metadata needed for validating the value of a class property. Chris@0: * Chris@0: * Most importantly, the metadata stores the constraints against which the Chris@0: * property's value should be validated. Chris@0: * Chris@0: * Additionally, the metadata stores whether objects stored in the property Chris@0: * should be validated against their class' metadata and whether traversable Chris@0: * objects should be traversed or not. Chris@0: * Chris@0: * @author Bernhard Schussek Chris@0: * Chris@0: * @see MetadataInterface Chris@0: * @see CascadingStrategy Chris@0: * @see TraversalStrategy Chris@0: */ Chris@0: interface PropertyMetadataInterface extends MetadataInterface Chris@0: { Chris@0: /** Chris@0: * Returns the name of the property. Chris@0: * Chris@0: * @return string The property name Chris@0: */ Chris@0: public function getPropertyName(); Chris@0: Chris@0: /** Chris@0: * Extracts the value of the property from the given container. Chris@0: * Chris@0: * @param mixed $containingValue The container to extract the property value from Chris@0: * Chris@0: * @return mixed The value of the property Chris@0: */ Chris@0: public function getPropertyValue($containingValue); Chris@0: }