Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public static function createFromBoard(Board $board, Transformation $transformation): self |
||
45 | { |
||
46 | if (!$board->isStepReadyForNextTransformation()) { |
||
47 | throw new UnfinishedStepPassedForTransformationException(); |
||
48 | } |
||
49 | |||
50 | return new Unit( |
||
51 | $board->getUuid(), |
||
52 | $board->getKey(), |
||
53 | $board->getProfile(), |
||
54 | $transformation->process($board->getStep()) |
||
55 | ); |
||
78 |