X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fvalidator%2FMapping%2FMetadataInterface.php;h=514beb94926ec14b7ac3cedd5eaf9f06c317e74d;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=1e9d3c8929bf745bf15f5d850cd60f78cc91c75d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/validator/Mapping/MetadataInterface.php b/vendor/symfony/validator/Mapping/MetadataInterface.php index 1e9d3c892..514beb949 100644 --- a/vendor/symfony/validator/Mapping/MetadataInterface.php +++ b/vendor/symfony/validator/Mapping/MetadataInterface.php @@ -12,7 +12,6 @@ namespace Symfony\Component\Validator\Mapping; use Symfony\Component\Validator\Constraint; -use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface; /** * A container for validation metadata. @@ -29,7 +28,7 @@ use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface; * @see CascadingStrategy * @see TraversalStrategy */ -interface MetadataInterface extends LegacyMetadataInterface +interface MetadataInterface { /** * Returns the strategy for cascading objects. @@ -55,4 +54,13 @@ interface MetadataInterface extends LegacyMetadataInterface * @return Constraint[] A list of Constraint instances */ public function getConstraints(); + + /** + * Returns all constraints for a given validation group. + * + * @param string $group The validation group + * + * @return Constraint[] A list of constraint instances + */ + public function findConstraints($group); }