| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 21 | public function __construct($name, array $fromStates, $to) |
|
| 32 | { |
||
| 33 | 21 | Assert::string($name); |
|
| 34 | 21 | $this->name = $name; |
|
| 35 | 21 | Assert::greaterThanEq(count($fromStates), 1, 'Expected at least %2$s state. Got: %s'); |
|
| 36 | 21 | Assert::allString($fromStates); |
|
| 37 | 21 | Assert::string($to); |
|
| 38 | 21 | $this->fromStates = $fromStates; |
|
| 39 | 21 | $this->to = $to; |
|
| 40 | 21 | } |
|
| 70 |