Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DatabaseAnnotation.php
Go to the documentation of this file.
1<?php
2
4
16 public $name;
17
21 public function initAnnotation(array $properties) {
22 if (isset ( $properties [0] )) {
23 $this->name = $properties [0];
24 unset ( $properties [0] );
25 } else if (isset ( $properties ['name'] )) {
26 $this->name = $properties ['name'];
27 } else {
28 throw new \Exception ( 'Database annotation must have a name' );
29 }
30 }
31}
initAnnotation(array $properties)
Initialize the annotation.