AnnotationWithVarType.php

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

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures

File

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

View source
<?php

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


/**
 * @Annotation
 * @Target("ALL")
 */
final class AnnotationWithVarType {
    
    /**
     * @var mixed
     */
    public $mixed;
    
    /**
     * @var boolean
     */
    public $boolean;
    
    /**
     * @var bool
     */
    public $bool;
    
    /**
     * @var float
     */
    public $float;
    
    /**
     * @var string
     */
    public $string;
    
    /**
     * @var integer
     */
    public $integer;
    
    /**
     * @var array
     */
    public $array;
    
    /**
     * @var Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationTargetAll
     */
    public $annotation;
    
    /**
     * @var array<integer>
     */
    public $arrayOfIntegers;
    
    /**
     * @var string[]
     */
    public $arrayOfStrings;
    
    /**
     * @var array<Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationTargetAll>
     */
    public $arrayOfAnnotations;

}

Classes

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

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