Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ResourceAnnotation.php
Go to the documentation of this file.
1<?php
3
4
6
18
19 public $name;
20
24 public function initAnnotation(array $properties) {
25 if (isset($properties[0])) {
26 $this->name = $properties[0];
27 unset($properties[0]);
28 } else if (isset($properties['name'])) {
29 $this->name = $properties['name'];
30 } else {
31 throw new \Exception('Resource annotation must have a name');
32 }
33 }
34}
initAnnotation(array $properties)
Initialize the annotation.