@Symfony\Component\Validator\Tests\Fixtures\ConstraintA @Assert\GroupSequence({"Foo", "Entity"})
Expanded class hierarchy of Entity
class Entity extends EntityParent implements EntityInterface {
/**
* @Assert\NotNull
* @Assert\Range(min=3)
* @Assert\All({@Assert\NotNull, @Assert\Range(min=3)}),
* @Assert\All(constraints={@Assert\NotNull, @Assert\Range(min=3)})
* @Assert\Collection(fields={
* "foo" = {@Assert\NotNull, @Assert\Range(min=3)},
* "bar" = @Assert\Range(min=5)
* })
* @Assert\Choice(choices={"A", "B"}, message="Must be one of %choices%")
*/
protected $firstName;
protected $lastName;
public $reference;
private $internal;
public $data = 'Overridden data';
public function __construct($internal = null) {
$this->internal = $internal;
}
public function getInternal() {
return $this->internal . ' from getter';
}
/**
* @Assert\NotNull
*/
public function getLastName() {
return $this->lastName;
}
public function getData() {
return 'Overridden data';
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Entity:: |
public | property |
Overrides EntityParent:: |
|
Entity:: |
protected | property |
@Assert\NotNull
@Assert\Range(min=3)
@Assert\All({@Assert\NotNull, @Assert\Range(min=3)}),
@Assert\All(constraints={@Assert\NotNull, @Assert\Range(min=3)})
@Assert\Collection(fields={
"foo" = {@Assert\NotNull,… Overrides EntityParent:: |
|
Entity:: |
private | property |
Overrides EntityParent:: |
|
Entity:: |
protected | property | ||
Entity:: |
public | property | ||
Entity:: |
public | function |
Overrides EntityParent:: |
|
Entity:: |
public | function | ||
Entity:: |
public | function | @Assert\NotNull | |
Entity:: |
public | function | ||
EntityParent:: |
protected | property | @NotNull |