Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / symfony / validator / PropertyMetadataContainerInterface.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Validator;
13
14 /**
15  * A container for {@link PropertyMetadataInterface} instances.
16  *
17  * @author Bernhard Schussek <bschussek@gmail.com>
18  *
19  * @deprecated since version 2.5, to be removed in 3.0.
20  *             Use {@link Mapping\ClassMetadataInterface} instead.
21  */
22 interface PropertyMetadataContainerInterface
23 {
24     /**
25      * Check if there's any metadata attached to the given named property.
26      *
27      * @param string $property The property name
28      *
29      * @return bool
30      */
31     public function hasPropertyMetadata($property);
32
33     /**
34      * Returns all metadata instances for the given named property.
35      *
36      * If your implementation does not support properties, simply throw an
37      * exception in this method (for example a <tt>BadMethodCallException</tt>).
38      *
39      * @param string $property The property name
40      *
41      * @return PropertyMetadataInterface[] A list of metadata instances. Empty if
42      *                                     no metadata exists for the property.
43      */
44     public function getPropertyMetadata($property);
45 }