final class AnnotationWithRequiredAttributes in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithRequiredAttributes
- 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithRequiredAttributes
Plugin annotation
@Target("ALL")
@Attributes({
@Attribute("value", required = true , type = "string"),
@Attribute("annot", required = true , type = "Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationTargetAnnotation"),
})
Hierarchy
- class \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithRequiredAttributes
Expanded class hierarchy of AnnotationWithRequiredAttributes
Related topics
File
- core/
tests/ Drupal/ Tests/ Component/ Annotation/ Doctrine/ Fixtures/ AnnotationWithRequiredAttributes.php, line 14
Namespace
Drupal\Tests\Component\Annotation\Doctrine\FixturesView source
final class AnnotationWithRequiredAttributes {
public final function __construct(array $data) {
foreach ($data as $key => $value) {
$this->{$key} = $value;
}
}
/**
* @var string
*/
private $value;
/**
*
* @var Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationTargetAnnotation
*/
private $annot;
/**
* @return string
*/
public function getValue() {
return $this->value;
}
/**
* @return Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationTargetAnnotation
*/
public function getAnnot() {
return $this->annot;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnnotationWithRequiredAttributes:: |
private | property | ||
AnnotationWithRequiredAttributes:: |
private | property | ||
AnnotationWithRequiredAttributes:: |
public | function | ||
AnnotationWithRequiredAttributes:: |
public | function | ||
AnnotationWithRequiredAttributes:: |
final public | function |