AnnotationWithAttributes.php in Drupal 10
File
core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php
View source
<?php
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures;
final class AnnotationWithAttributes {
public final function __construct(array $data) {
foreach ($data as $key => $value) {
$this->{$key} = $value;
}
}
private $mixed;
private $boolean;
private $bool;
private $float;
private $string;
private $integer;
private $array;
private $annotation;
private $arrayOfIntegers;
private $arrayOfStrings;
private $arrayOfAnnotations;
public function getMixed() {
return $this->mixed;
}
public function getBoolean() {
return $this->boolean;
}
public function getBool() {
return $this->bool;
}
public function getFloat() {
return $this->float;
}
public function getString() {
return $this->string;
}
public function getInteger() {
return $this->integer;
}
public function getArray() {
return $this->array;
}
public function getAnnotation() {
return $this->annotation;
}
public function getArrayOfStrings() {
return $this->arrayOfIntegers;
}
public function getArrayOfIntegers() {
return $this->arrayOfIntegers;
}
public function getArrayOfAnnotations() {
return $this->arrayOfAnnotations;
}
}
Classes
Name |
Description |
AnnotationWithAttributes |
Plugin annotation
@Target("ALL")
@Attributes({
@Attribute("mixed", type = "mixed"),
@Attribute("boolean", type = "boolean"),
@Attribute("bool", type = "bool"),
@Attribute("float", … |