| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | 19 | public function __construct( |
|
| 17 | public array $commands = [], |
||
| 18 | public ?string $when = null, |
||
| 19 | public ?string $description = null, |
||
| 20 | ) { |
||
| 21 | // Filter and ensure valid commands |
||
| 22 | 19 | $this->commands = array_values(array_filter( |
|
| 23 | 19 | $this->commands, |
|
| 24 | 19 | static fn ($c) => $c instanceof AbstractStandardCommand |
|
| 25 | 19 | )); |
|
| 44 |