| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function createWriter( |
||
| 37 | string $bgcNr, |
||
| 38 | AccountNumber $bankgiro, |
||
| 39 | \DateTimeInterface $date = null |
||
| 40 | ): WriterInterface { |
||
| 41 | return new Writer( |
||
| 42 | new TreeBuilder( |
||
| 43 | $bgcNr, |
||
| 44 | $bankgiro, |
||
| 45 | $date ?: new \DateTimeImmutable() |
||
| 46 | ), |
||
| 47 | new PrintingVisitor( |
||
| 48 | new SignalMoneyFormatter() |
||
| 49 | ) |
||
| 53 |