@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Return all resources. |
| 57 | 57 | * |
| 58 | - * @return array|Resource[] |
|
| 58 | + * @return \SimpleAcl\Object[] |
|
| 59 | 59 | */ |
| 60 | 60 | public function getResources() |
| 61 | 61 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @param $resourceName |
| 79 | 79 | * |
| 80 | - * @return null|Resource |
|
| 80 | + * @return \SimpleAcl\Object|null |
|
| 81 | 81 | */ |
| 82 | 82 | public function getResource($resourceName) |
| 83 | 83 | { |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * |
| 78 | 78 | * @param $roleName |
| 79 | 79 | * |
| 80 | - * @return null|Role |
|
| 80 | + * @return \SimpleAcl\Object|null |
|
| 81 | 81 | */ |
| 82 | 82 | public function getRole($roleName) |
| 83 | 83 | { |
@@ -49,8 +49,8 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * @param Rule $rule |
| 51 | 51 | * @param int $priority |
| 52 | - * @param $needRoleName |
|
| 53 | - * @param $needResourceName |
|
| 52 | + * @param string $needRoleName |
|
| 53 | + * @param string $needResourceName |
|
| 54 | 54 | */ |
| 55 | 55 | public function __construct(Rule $rule, $priority, $needRoleName, $needResourceName) |
| 56 | 56 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | protected $objects = array(); |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param $objects |
|
| 20 | + * @param [] $objects |
|
| 21 | 21 | */ |
| 22 | 22 | public function __construct($objects) |
| 23 | 23 | { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * Check owing Role & Resource and match its with $roleName & $resourceName; |
| 189 | 189 | * if match was found depending on action allow or deny access to $resourceName for $roleName. |
| 190 | 190 | * |
| 191 | - * @param $needRuleName |
|
| 191 | + * @param string $needRuleName |
|
| 192 | 192 | * @param string $needRoleName |
| 193 | 193 | * @param string $needResourceName |
| 194 | 194 | * |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | * @param \SimpleAcl\Resource $resource |
| 301 | 301 | * @param string $needRoleName |
| 302 | 302 | * @param string $needResourceName |
| 303 | - * @param $priority |
|
| 303 | + * @param integer $priority |
|
| 304 | 304 | * |
| 305 | 305 | * @return RuleResult|null |
| 306 | 306 | */ |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | /** |
| 345 | 345 | * Creates an id for rule. |
| 346 | 346 | * |
| 347 | - * @return string |
|
| 347 | + * @return integer |
|
| 348 | 348 | */ |
| 349 | 349 | protected function generateId() |
| 350 | 350 | { |