<?php
namespace Symfony\Tests\Component\Validator\Fixtures;
require_once __DIR__.'/EntityParent.php';
require_once __DIR__.'/EntityInterface.php';
/**
* @validation:NotNull
* @Symfony\Tests\Component\Validator\Fixtures\ConstraintA
* @validation:Min(3)
* @validation:Choice({"A", "B"})
* @validation:Validation({
* @validation:All({@validation:NotNull, @validation:Min(3)}),
* @validation:All(constraints={@validation:NotNull, @validation:Min(3)})
* })
* @validation:Collection(fields={
* "foo" = {@validation:NotNull, @validation:Min(3)},
* "bar" = @validation:Min(5)
*/
class Entity extends EntityParent implements EntityInterface
{
* @validation:Choice(choices={"A", "B"}, message="Must be one of %choices%")
protected $firstName;
protected $lastName;
public $reference;
private $internal;
public function __construct($internal = null)
$this->internal = $internal;
}
public function getInternal()
return $this->internal . ' from getter';
public function getLastName()
return $this->lastName;