Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Tests / Fixtures / Entity.php
index e30619103d90617cefa96736648972dfc8ca7c42..16ba8a718ec59d5522f0d5613222b964b3b51d3b 100644 (file)
@@ -12,7 +12,7 @@
 namespace Symfony\Component\Validator\Tests\Fixtures;
 
 use Symfony\Component\Validator\Constraints as Assert;
-use Symfony\Component\Validator\ExecutionContextInterface;
+use Symfony\Component\Validator\Context\ExecutionContextInterface;
 
 /**
  * @Symfony\Component\Validator\Tests\Fixtures\ConstraintA
@@ -33,6 +33,14 @@ class Entity extends EntityParent implements EntityInterfaceB
      * @Assert\Choice(choices={"A", "B"}, message="Must be one of %choices%")
      */
     public $firstName;
+    /**
+     * @Assert\Valid
+     */
+    public $childA;
+    /**
+     * @Assert\Valid
+     */
+    public $childB;
     protected $lastName;
     public $reference;
     public $reference2;
@@ -101,4 +109,36 @@ class Entity extends EntityParent implements EntityInterfaceB
     public static function validateMeStatic($object, ExecutionContextInterface $context)
     {
     }
+
+    /**
+     * @return mixed
+     */
+    public function getChildA()
+    {
+        return $this->childA;
+    }
+
+    /**
+     * @param mixed $childA
+     */
+    public function setChildA($childA)
+    {
+        $this->childA = $childA;
+    }
+
+    /**
+     * @return mixed
+     */
+    public function getChildB()
+    {
+        return $this->childB;
+    }
+
+    /**
+     * @param mixed $childB
+     */
+    public function setChildB($childB)
+    {
+        $this->childB = $childB;
+    }
 }