Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Annotation.php

function Annotation::__construct

Same name in this branch
  1. 11.1.x vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Annotation.php \SlevomatCodingStandard\Helpers\Annotation::__construct()
  2. 11.1.x vendor/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::__construct()

Parameters

array<string, mixed> $data Key-value for properties to be defined in this class. :

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php, line 22

Class

Annotation
Annotations class.

Namespace

Doctrine\Common\Annotations

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal