| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class NullDataLayer implements ApiResourcePersisterInterface, ApiResourceRetrieverInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritDoc} |
||
| 16 | */ |
||
| 17 | public function persistNew($resource, array $context = []) |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritDoc} |
||
| 24 | */ |
||
| 25 | public function persistExisting($resource, $int, array $context = []) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritDoc} |
||
| 32 | */ |
||
| 33 | public function remove(string $resourceClass, $id, array $context) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | public function retrieve(string $resourceClass, $id, array $context) |
||
| 41 | { |
||
| 42 | throw new ResourceNotFoundException($id); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritDoc} |
||
| 47 | */ |
||
| 48 | public function retrieveAll(string $resourceClass, array $context, SearchFilterRequest $searchFilterRequest |
||
| 51 | } |
||
| 52 | } |
||
| 53 |