Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class InvoiceFixturePool |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var InvoiceFixture[] |
||
13 | */ |
||
14 | private $invoiceFixtures = []; |
||
15 | |||
16 | 3 | public function add(InvoiceInterface $invoice, string $key = null): void |
|
22 | } |
||
23 | 3 | } |
|
24 | |||
25 | /** |
||
26 | * Returns invoice fixture by key, or last added if key not specified |
||
27 | * |
||
28 | * @param string|null $key |
||
29 | * @return InvoiceFixture |
||
30 | */ |
||
31 | 4 | public function get(string $key = null): InvoiceFixture |
|
42 |