AnnotationWithRequiredAttributesWithoutContructor.php

Same filename in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php
  2. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php
  3. 11.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php

View source
<?php

namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures;


/**
 * @Annotation
 * @Target("ALL")
 */
final class AnnotationWithRequiredAttributesWithoutContructor {
    
    /**
     * @Required
     * @var string
     */
    public $value;
    
    /**
     * @Required
     * @var Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationTargetAnnotation
     */
    public $annot;

}

Classes

Title Deprecated Summary
AnnotationWithRequiredAttributesWithoutContructor Plugin annotation @Target("ALL");

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.