function Annotation::__construct
Parameters
array<string, mixed> $data Key-value for properties to be defined in this class. :
File
-
core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ Annotation.php, line 45
Class
- Annotation
- Annotations class.
Namespace
Drupal\Component\Annotation\DoctrineCode
final public function __construct(array $data) {
foreach ($data as $key => $value) {
$this->{$key} = $value;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.