AnnotationWithRequiredAttributes.php in Drupal 8
File
core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php
View source
<?php
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures;
final class AnnotationWithRequiredAttributes {
public final function __construct(array $data) {
foreach ($data as $key => $value) {
$this->{$key} = $value;
}
}
private $value;
private $annot;
public function getValue() {
return $this->value;
}
public function getAnnot() {
return $this->annot;
}
}
Classes
Name |
Description |
AnnotationWithRequiredAttributes |
Plugin annotation
@Target("ALL")
@Attributes({
@Attribute("value", required = true , type = "string"),
@Attribute("annot", required = true , type =… |