class Entity in Plug 7
Same name in this branch
- 7 lib/Symfony/validator/Symfony/Component/Validator/Tests/Fixtures/Entity.php \Symfony\Component\Validator\Tests\Fixtures\Entity
- 7 lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/_files/annotation/TestClass.php \Doctrine\Entity
@Symfony\Component\Validator\Tests\Fixtures\ConstraintA @Assert\GroupSequence({"Foo", "Entity"}) @Assert\Callback({"Symfony\Component\Validator\Tests\Fixtures\CallbackClass", "callback"})
Hierarchy
- class \Symfony\Component\Validator\Tests\Fixtures\EntityParent
- class \Symfony\Component\Validator\Tests\Fixtures\Entity implements EntityInterface
Expanded class hierarchy of Entity
7 files declare their use of Entity
- Abstract2Dot5ApiTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractLegacyApiTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractLegacyApiTest.php - AbstractValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php - ExpressionValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ ExpressionValidatorTest.php - GetterMetadataTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ GetterMetadataTest.php
19 string references to 'Entity'
- Abstract2Dot5ApiTest::testGroupSequenceIncludesReferences in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractValidatorTest::testPropagateDefaultGroupToReferenceWhenReplacingDefaultGroup in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testReplaceDefaultGroupByGroupSequenceArray in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testReplaceDefaultGroupByGroupSequenceObject in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testReplaceDefaultGroupWithArrayFromGroupSequenceProvider in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Fixtures/ Entity.php, line 22
Namespace
Symfony\Component\Validator\Tests\FixturesView source
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%")
*/
public $firstName;
protected $lastName;
public $reference;
public $reference2;
private $internal;
public $data = 'Overridden data';
public $initialized = false;
public function __construct($internal = null) {
$this->internal = $internal;
}
public function getInternal() {
return $this->internal . ' from getter';
}
public function setLastName($lastName) {
$this->lastName = $lastName;
}
/**
* @Assert\NotNull
*/
public function getLastName() {
return $this->lastName;
}
/**
* @Assert\IsTrue
*/
public function isValid() {
return 'valid';
}
/**
* @Assert\IsTrue
*/
public function hasPermissions() {
return 'permissions';
}
public function getData() {
return 'Overridden data';
}
/**
* @Assert\Callback
*/
public function validateMe(ExecutionContextInterface $context) {
}
/**
* @Assert\Callback
*/
public static function validateMeStatic($object, ExecutionContextInterface $context) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Entity:: |
public | property |
Overrides EntityParent:: |
|
Entity:: |
public | 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:: |
public | property | ||
Entity:: |
private | property |
Overrides EntityParent:: |
|
Entity:: |
protected | property | ||
Entity:: |
public | property | ||
Entity:: |
public | property | ||
Entity:: |
public | function |
Overrides EntityParent:: |
|
Entity:: |
public | function | ||
Entity:: |
public | function | @Assert\NotNull | |
Entity:: |
public | function | @Assert\IsTrue | |
Entity:: |
public | function | @Assert\IsTrue | |
Entity:: |
public | function | ||
Entity:: |
public | function | @Assert\Callback | |
Entity:: |
public static | function | @Assert\Callback | |
Entity:: |
public | function | ||
EntityParent:: |
protected | property | @NotNull |