| Conditions | 2 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 18 |
| Ratio | 100 % |
| Tests | 11 |
| CRAP Score | 2.0023 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | protected $name = 'Invoiced'; |
||
| 23 | |||
| 24 | 2 | protected function factoryArray() |
|
| 25 | { |
||
| 26 | 2 | $invoice = $this->getOrder()->getInvoice(); |
|
| 27 | 2 | $invoice->check(); |
|
| 28 | |||
| 29 | return [ |
||
| 30 | 2 | 'status' => 'Invoiced', |
|
| 31 | 2 | 'number' => $invoice->getNumber(), |
|
| 32 | 2 | 'line' => $invoice->getLine(), |
|
| 33 | 2 | 'key' => $invoice->getAccessKey(), |
|
| 34 | 2 | 'issueDate' => $invoice->getIssueDate(), |
|
| 35 | ]; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |