Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class NullDataLayer implements ApiResourcePersisterInterface, ApiResourceRetrieverInterface |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | */ |
||
19 | public function persistNew($resource, array $context = []) |
||
20 | { |
||
21 | return $resource; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | public function persistExisting($resource, $int, array $context = []) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | */ |
||
35 | public function remove(string $resourceClass, $id, array $context) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | public function retrieve(string $resourceClass, $id, array $context) |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | public function retrieveAll(string $resourceClass, array $context, SearchFilterRequest $searchFilterRequest |
||
55 |