Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class DoctrineCartRepository implements CartRepository |
||
15 | { |
||
16 | 10 | public function __construct(private EntityManager $entityManger) |
|
17 | { |
||
18 | 10 | } |
|
19 | 10 | ||
20 | public function add(Cart $cart): void |
||
21 | 7 | { |
|
22 | $this->entityManger->persist($cart); |
||
23 | 7 | } |
|
24 | 7 | ||
25 | public function get(string $id): Cart |
||
43 | 3 | } |
|
44 | } |
||
45 | |||
46 | public function remove(string $id): void |
||
52 |