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