14
14
use InMemoryList \Domain \Model \Exceptions \ListElementNotConsistentException ;
15
15
use InMemoryList \Domain \Model \ListElement ;
16
16
use InMemoryList \Domain \Model \ListCollection ;
17
- use InMemoryList \Domain \Model \Contracts \ListRepository ;
17
+ use InMemoryList \Domain \Model \Contracts \ListRepositoryInterface ;
18
18
use InMemoryList \Domain \Model \ListElementUuid ;
19
19
use InMemoryList \Infrastructure \Persistance \Exceptions \ListAlreadyExistsException ;
20
20
use InMemoryList \Infrastructure \Persistance \Exceptions \ListDoesNotExistsException ;
21
21
22
- class ApcuRepository extends AbstractRepository implements ListRepository
22
+ class ApcuRepositoryInterface extends AbstractRepository implements ListRepositoryInterface
23
23
{
24
24
/**
25
25
* @param ListCollection $list
@@ -172,7 +172,7 @@ public function getHeaders($listUuid)
172
172
*/
173
173
public function getIndex ($ listUuid = null , $ flush = null )
174
174
{
175
- $ indexKey = ListRepository ::INDEX ;
175
+ $ indexKey = ListRepositoryInterface ::INDEX ;
176
176
$ index = apcu_fetch ($ indexKey );
177
177
178
178
if ($ flush && $ index ) {
@@ -199,7 +199,7 @@ public function getIndex($listUuid = null, $flush = null)
199
199
*/
200
200
private function _addOrUpdateListToIndex ($ listUuid , $ size , $ numberOfChunks , $ chunkSize , $ ttl = null )
201
201
{
202
- $ indexKey = ListRepository ::INDEX ;
202
+ $ indexKey = ListRepositoryInterface ::INDEX ;
203
203
$ indexArray = serialize ([
204
204
'uuid ' => $ listUuid ,
205
205
'created_on ' => new \DateTimeImmutable (),
@@ -288,7 +288,7 @@ public function pushElement($listUuid, ListElement $listElement)
288
288
*/
289
289
public function removeListFromIndex ($ listUuid )
290
290
{
291
- $ indexKey = ListRepository ::INDEX ;
291
+ $ indexKey = ListRepositoryInterface ::INDEX ;
292
292
$ index = $ this ->getIndex ();
293
293
unset($ index [(string ) $ listUuid ]);
294
294
0 commit comments