| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | class UserRolesQuery extends AbstractQuery |
||
| 11 | { |
||
| 12 | use Cacheable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Execute the Query. |
||
| 16 | * |
||
| 17 | * @return Collection |
||
| 18 | */ |
||
| 19 | public function execute() |
||
| 20 | { |
||
| 21 | return Role::query()->whereTypeUser()->get(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Retrieve the Query cache key. |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function cacheKey(): string |
||
| 32 | } |
||
| 33 | } |
||
| 34 |