class Entity

@Symfony\Component\Validator\Tests\Fixtures\ConstraintA @Assert\GroupSequence({"Foo", "Entity"})

Hierarchy

Expanded class hierarchy of Entity

6 files declare their use of Entity
ClassMetadataFactoryTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataFactoryTest.php
ClassMetadataTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php
GetterMetadataTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php
PropertyMetadataTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php
ValidationVisitorTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/ValidationVisitorTest.php

... See full list

14 string references to 'Entity'
AnnotationLoaderTest::testLoadClassMetadata in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php
AnnotationLoaderTest::testLoadClassMetadataAndMerge in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php
Test MetaData merge with parent annotation.
ClassMetadataFactoryTest::testMergeParentConstraints in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataFactoryTest.php
ClassMetadataTest::testMergeConstraintsKeepsPrivateMembersSeparate in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php
ClassMetadataTest::testMergeConstraintsMergesClassConstraints in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php

... See full list

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Fixtures/Entity.php, line 20

Namespace

Symfony\Component\Validator\Tests\Fixtures
View 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%")
   */
  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';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Entity::$data public property Overrides EntityParent::$data
Entity::$firstName 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::$firstName
Entity::$internal private property Overrides EntityParent::$internal
Entity::$lastName protected property
Entity::$reference public property
Entity::getData public function Overrides EntityParent::getData
Entity::getInternal public function
Entity::getLastName public function @Assert\NotNull
Entity::__construct public function
EntityParent::$other protected property @NotNull