ClassWithAnnotationWithVarType.php

Namespace

Doctrine\Tests\Common\Annotations\Fixtures

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithAnnotationWithVarType.php
View source
<?php

namespace Doctrine\Tests\Common\Annotations\Fixtures;

use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationWithVarType;
use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll;
use Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAnnotation;
class ClassWithAnnotationWithVarType {

  /**
   * @AnnotationWithVarType(string = "String Value")
   */
  public $foo;

  /**
   * @AnnotationWithVarType(annotation = @AnnotationTargetAll)
   */
  public function bar() {
  }

  /**
   * @AnnotationWithVarType(string = 123)
   */
  public $invalidProperty;

  /**
   * @AnnotationWithVarType(annotation = @AnnotationTargetAnnotation)
   */
  public function invalidMethod() {
  }

}

Classes