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
* @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;
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;
+ }
}