| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function create(Type $type): ConstructorInterface |
||
| 25 | { |
||
| 26 | return match ((string) $type->getValue()) { |
||
| 27 | Type::NORMAL => new NormalConstructor( |
||
| 28 | new AttemptWordFinder($this->wordFinder), |
||
| 29 | new GridScanner(new RowXScanner(), new RowYScanner()) |
||
| 30 | ), |
||
| 31 | Type::FIGURED => new FiguredConstructor(), |
||
| 32 | }; |
||
| 35 |