You are here

final public function Annotation::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/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

vendor/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;
  }
}