Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Mapping / PropertyMetadataInterface.php
index d7a4114d44f149735d2cf2b068eaf85b38262f87..059b142eda3b2bbb2fec98e5233d9a4cde52f06d 100644 (file)
@@ -11,9 +11,6 @@
 
 namespace Symfony\Component\Validator\Mapping;
 
-use Symfony\Component\Validator\ClassBasedInterface;
-use Symfony\Component\Validator\PropertyMetadataInterface as LegacyPropertyMetadataInterface;
-
 /**
  * Stores all metadata needed for validating the value of a class property.
  *
@@ -30,6 +27,21 @@ use Symfony\Component\Validator\PropertyMetadataInterface as LegacyPropertyMetad
  * @see CascadingStrategy
  * @see TraversalStrategy
  */
-interface PropertyMetadataInterface extends MetadataInterface, LegacyPropertyMetadataInterface, ClassBasedInterface
+interface PropertyMetadataInterface extends MetadataInterface
 {
+    /**
+     * Returns the name of the property.
+     *
+     * @return string The property name
+     */
+    public function getPropertyName();
+
+    /**
+     * Extracts the value of the property from the given container.
+     *
+     * @param mixed $containingValue The container to extract the property value from
+     *
+     * @return mixed The value of the property
+     */
+    public function getPropertyValue($containingValue);
 }