| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CronExpressionGenerator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Options related to the type. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | public array $options; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * CronExpressionGenerator constructor. |
||
| 19 | * |
||
| 20 | * @param array $options |
||
| 21 | * @throws InvalidArgumentException |
||
| 22 | */ |
||
| 23 | public function __construct(array $options) |
||
| 24 | { |
||
| 25 | $this->options = $options; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Generate the cron expression. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function generate(): string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |