This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Validator/Mapping/PropertyMetadataInterface.php

48 lines
1.3 KiB
PHP
Raw Normal View History

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\Mapping;
/**
* 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.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @see MetadataInterface
* @see CascadingStrategy
* @see TraversalStrategy
*/
2015-09-30 14:39:58 +01:00
interface PropertyMetadataInterface extends MetadataInterface
{
2015-09-30 14:39:58 +01:00
/**
* Returns the name of the property.
*
2016-06-29 06:40:45 +01:00
* @return string The property name
2015-09-30 14:39:58 +01:00
*/
public function getPropertyName();
/**
* Extracts the value of the property from the given container.
*
2016-06-29 06:40:45 +01:00
* @param mixed $containingValue The container to extract the property value from
2015-09-30 14:39:58 +01:00
*
2016-06-29 06:40:45 +01:00
* @return mixed The value of the property
2015-09-30 14:39:58 +01:00
*/
public function getPropertyValue($containingValue);
}