namespace Symfony\Component\Validator\Mapping;
use Symfony\Component\Validator\Constraint;
-use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface;
/**
* A container for validation metadata.
* @see CascadingStrategy
* @see TraversalStrategy
*/
-interface MetadataInterface extends LegacyMetadataInterface
+interface MetadataInterface
{
/**
* Returns the strategy for cascading objects.
* @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);
}