class Entity in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Tests/Fixtures/Entity.php \Symfony\Component\Validator\Tests\Fixtures\Entity
- 8 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity
- 8 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity
- 8 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity
- 8 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/_files/annotation/TestClass.php \Doctrine\Entity
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Fixtures/Entity.php \Symfony\Component\Validator\Tests\Fixtures\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
8 files declare their use of Entity
- Abstract2Dot5ApiTest.php in vendor/
symfony/ validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractLegacyApiTest.php in vendor/
symfony/ validator/ Tests/ Validator/ AbstractLegacyApiTest.php - AbstractValidatorTest.php in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php - ExpressionValidatorTest.php in vendor/
symfony/ validator/ Tests/ Constraints/ ExpressionValidatorTest.php - GetterMetadataTest.php in vendor/
symfony/ validator/ Tests/ Mapping/ GetterMetadataTest.php
23 string references to 'Entity'
- Abstract2Dot5ApiTest::testGroupSequenceIncludesReferences in vendor/
symfony/ validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractValidatorTest::testPropagateDefaultGroupToReferenceWhenReplacingDefaultGroup in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testReplaceDefaultGroupByGroupSequenceArray in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testReplaceDefaultGroupByGroupSequenceObject in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php - AbstractValidatorTest::testReplaceDefaultGroupWithArrayFromGroupSequenceProvider in vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php
File
- vendor/
symfony/ 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 |