30 if (isset($properties[0])) {
31 $this->name = $properties[0];
32 unset($properties[0]);
33 if (isset($properties[1])) {
34 $this->level = $properties[1];
35 unset($properties[1]);
37 }
else if (isset($properties[
'name'])) {
38 $this->name = $properties[
'name'];
39 if (isset($properties[
'level'])) {
40 $this->level = $properties[
'level'];
43 throw new \Exception(
'Permission annotation must have a name');