You are here

final public function Annotation::__construct in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php \Doctrine\Common\Annotations\Annotation::__construct()

Constructor.

Parameters

array $data Key-value for properties to be defined in this class.:

File

modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php, line 44

Class

Annotation
Annotations class.

Namespace

Doctrine\Common\Annotations

Code

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