Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Mapping / MetadataInterface.php
index 1e9d3c8929bf745bf15f5d850cd60f78cc91c75d..514beb94926ec14b7ac3cedd5eaf9f06c317e74d 100644 (file)
@@ -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);
 }