| Total Complexity | 6 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class ServerVarsRequest extends Request |
||
| 6 | { |
||
| 7 | public function rules() |
||
| 8 | { |
||
| 9 | return [ |
||
| 10 | 'vars' => 'required|array', |
||
| 11 | 'autostart' => 'nullable|boolean', |
||
| 12 | 'update_before_start' => 'nullable|boolean', |
||
| 13 | ]; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function vars(): array |
||
| 19 | } |
||
| 20 | |||
| 21 | public function autostart(): bool |
||
| 22 | { |
||
| 23 | return $this->get('autostart') !== null && $this->get('autostart'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function updateBeforeStart(): bool |
||
| 29 | } |
||
| 30 | } |
||
| 31 |