| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class AbstractRequest extends FormRequest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritDoc} |
||
| 12 | */ |
||
| 13 | 2 | public function authorize() |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritDoc} |
||
| 20 | */ |
||
| 21 | 2 | public function attributes() |
|
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Return branch model based on the request. |
||
| 38 | * |
||
| 39 | * @param string $key |
||
| 40 | * @return \App\Models\Branch |
||
| 41 | */ |
||
| 42 | 2 | public function getBranch(string $key = 'branch_id'): Branch |
|
| 47 |