Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class InMemoryRepository extends SimpleRepository |
||
8 | { |
||
9 | /** |
||
10 | * @var Collection |
||
11 | */ |
||
12 | protected $items; |
||
13 | |||
14 | /** |
||
15 | * InMemoryRepository constructor. |
||
16 | */ |
||
17 | public function __construct() |
||
18 | { |
||
19 | $this->items = new Collection; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function flush(): bool |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected function retrieve(string $key) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | protected function store(string $key, Collection $collection): bool |
||
48 | } |
||
49 | } |
||
50 |