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 {@link PropertyMetadataInterface} instances.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 * @deprecated since version 2.5, to be removed in 3.0.
20 * Use {@link Mapping\ClassMetadataInterface} instead.
22 interface PropertyMetadataContainerInterface
25 * Check if there's any metadata attached to the given named property.
27 * @param string $property The property name
31 public function hasPropertyMetadata($property);
34 * Returns all metadata instances for the given named property.
36 * If your implementation does not support properties, simply throw an
37 * exception in this method (for example a <tt>BadMethodCallException</tt>).
39 * @param string $property The property name
41 * @return PropertyMetadataInterface[] A list of metadata instances. Empty if
42 * no metadata exists for the property.
44 public function getPropertyMetadata($property);