Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / symfony / validator / Mapping / MetadataInterface.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\Mapping;
13
14 use Symfony\Component\Validator\Constraint;
15 use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface;
16
17 /**
18  * A container for validation metadata.
19  *
20  * Most importantly, the metadata stores the constraints against which an object
21  * and its properties should be validated.
22  *
23  * Additionally, the metadata stores whether objects should be validated
24  * against their class' metadata and whether traversable objects should be
25  * traversed or not.
26  *
27  * @author Bernhard Schussek <bschussek@gmail.com>
28  *
29  * @see CascadingStrategy
30  * @see TraversalStrategy
31  */
32 interface MetadataInterface extends LegacyMetadataInterface
33 {
34     /**
35      * Returns the strategy for cascading objects.
36      *
37      * @return int The cascading strategy
38      *
39      * @see CascadingStrategy
40      */
41     public function getCascadingStrategy();
42
43     /**
44      * Returns the strategy for traversing traversable objects.
45      *
46      * @return int The traversal strategy
47      *
48      * @see TraversalStrategy
49      */
50     public function getTraversalStrategy();
51
52     /**
53      * Returns all constraints of this element.
54      *
55      * @return Constraint[] A list of Constraint instances
56      */
57     public function getConstraints();
58 }