Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
26 | 20 | public function __construct(string $name, string $to, string ...$fromStates) |
|
27 | { |
||
28 | 20 | $this->name = $name; |
|
29 | 20 | Assert::greaterThanEq(\count($fromStates), 1, 'Expected at least %2$s state. Got: %s'); |
|
30 | 20 | $this->fromStates = $fromStates; |
|
31 | 20 | $this->to = $to; |
|
32 | 20 | } |
|
53 |