| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function generate(): string |
||
| 34 | { |
||
| 35 | $cron['minute'] = (new ParseInput(Arr::get($this->options, 'minute', []), 0, 59))->generate(); |
||
|
|
|||
| 36 | $cron['hour'] = (new ParseInput(Arr::get($this->options, 'hour', []), 0, 23))->generate(); |
||
| 37 | $cron['day_month'] = (new ParseInput(Arr::get($this->options, 'day_month', []), 1, 31))->generate(); |
||
| 38 | $cron['month'] = (new ParseInput(Arr::get($this->options, 'month', []), 1, 12))->generate(); |
||
| 39 | $cron['day_week'] = (new ParseInput(Arr::get($this->options, 'day_week', []), 0, 6))->generate(); |
||
| 40 | |||
| 41 | return implode(' ', $cron); |
||
| 42 | } |
||
| 44 |