| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | /** | 
| 58 | 58 | * Set child. | 
| 59 | 59 | * @param string|Item $parent | 
| 60 | - * @param string|Item $child | |
| 60 | + * @param Item $child | |
| 61 | 61 | * @return bool | 
| 62 | 62 | */ | 
| 63 | 63 | public function setChild($parent, $child) | 
| @@ -102,6 +102,9 @@ discard block | ||
| 102 | 102 | return $this->assign($item, $userId); | 
| 103 | 103 | } | 
| 104 | 104 | |
| 105 | + /** | |
| 106 | + * @param string $name | |
| 107 | + */ | |
| 105 | 108 | protected function findItem($name, $description = null) | 
| 106 | 109 |      { | 
| 107 | 110 | $item = $this->getItem($name); | 
| @@ -28,6 +28,9 @@ discard block | ||
| 28 | 28 | } | 
| 29 | 29 | } | 
| 30 | 30 | |
| 31 | + /** | |
| 32 | + * @param string $userId | |
| 33 | + */ | |
| 31 | 34 | public function assertAccesses($userId, array $allowedPermissions) | 
| 32 | 35 |      { | 
| 33 | 36 | $allPermissions = array_keys($this->auth->getPermissions()); | 
| @@ -42,6 +45,9 @@ discard block | ||
| 42 | 45 | $this->assertAccess($userId, false, $deniedPermissions); | 
| 43 | 46 | } | 
| 44 | 47 | |
| 48 | + /** | |
| 49 | + * @param boolean $isAllowed | |
| 50 | + */ | |
| 45 | 51 | public function assertAccess($userId, $isAllowed, array $permissions) | 
| 46 | 52 |      { | 
| 47 | 53 |          foreach ($permissions as $permission) { |