You are here

final public function AnnotationWithAttributes::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithAttributes::__construct()
  2. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithAttributes::__construct()

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php, line 25

Class

AnnotationWithAttributes
Plugin annotation @Target("ALL") @Attributes({ @Attribute("mixed", type = "mixed"), @Attribute("boolean", type = "boolean"), @Attribute("bool", type = "bool"), @Attribute("float", …

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures

Code

public final function __construct(array $data) {
  foreach ($data as $key => $value) {
    $this->{$key} = $value;
  }
}