| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | 1 | public function create(Customer $customer, Sequence $sequence, DateTime $now) |
|
| 40 | { |
||
| 41 | $replace = [ |
||
| 42 | 1 | Number::zeroFill($customer->getCode(), 6, Number::FILL_LEFT), |
|
| 43 | 1 | $now->format('dmY'), |
|
| 44 | 1 | Number::zeroFill($sequence->getValue(), 5, Number::FILL_LEFT), |
|
| 45 | ]; |
||
| 46 | |||
| 47 | 1 | return str_replace($this->search, $replace, self::TEMPLATE_GENERATED); |
|
| 48 | } |
||
| 49 | } |