Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Pz\LaravelDoctrine\Rest\Traits; |
||
11 | trait HandlesAuthorization |
||
12 | { |
||
13 | /** |
||
14 | * Action ability. |
||
15 | * |
||
16 | * @return string |
||
17 | */ |
||
18 | abstract protected function restAbility(); |
||
19 | |||
20 | /** |
||
21 | * @param RestRequest $request |
||
22 | * @param array|mixed $arguments |
||
23 | * @throws RestException |
||
24 | */ |
||
25 | 7 | public function authorize($request, $arguments = []) |
|
38 |