| 1 | <?php |
||
| 9 | class BuildPolicy |
||
| 10 | { |
||
| 11 | use HandlesAuthorization; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Determine whether the user can view the build. |
||
| 15 | * |
||
| 16 | * @param Ministry $user |
||
| 17 | * @param Build $build |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | public function view(Ministry $user, Build $build) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Determine whether the user can create builds. |
||
| 27 | * |
||
| 28 | * @param Ministry $user |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | public function create(Ministry $user) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Determine whether the user can update the build. |
||
| 38 | * |
||
| 39 | * @param Ministry $user |
||
| 40 | * @param Build $build |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function update(Ministry $user, Build $build) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Determine whether the user can delete the build. |
||
| 50 | * |
||
| 51 | * @param Ministry $user |
||
| 52 | * @param Build $build |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | public function delete(Ministry $user, Build $build) |
||
| 59 | } |
||
| 60 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.