| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function fromArray($aclArray) { |
||
| 49 | $role = new Role(); |
||
| 50 | $role->fromArray($aclArray['role']); |
||
| 51 | $resource = new Resource(); |
||
| 52 | $resource->fromArray($aclArray['resource']); |
||
| 53 | $permission = new Permission(); |
||
| 54 | $permission->fromArray($aclArray['permission']); |
||
| 55 | $this->role = $role; |
||
| 56 | $this->permission = $permission; |
||
| 57 | $this->resource = $resource; |
||
| 58 | } |
||
| 75 |