AnnotationWithVarType.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php
  2. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php
  3. 10 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

declare (strict_types=1);
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.