| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait Authorizable |
||
| 9 | { |
||
| 10 | use BaseAuthorizable; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Throw an HttpException if the entity has the given abilities. |
||
| 14 | * |
||
| 15 | * @param iterable|string $abilities |
||
| 16 | * @param array|mixed $arguments |
||
| 17 | * @return $this |
||
| 18 | * |
||
| 19 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
||
| 20 | */ |
||
| 21 | public function abortIfCant($abilities, $arguments = []) |
||
| 30 |