1 | <?php |
||
13 | class InMemoryEntityStore extends EntityStore { |
||
14 | |||
15 | /** |
||
16 | * @var DispatchingEntityLookup |
||
17 | */ |
||
18 | private $entityLookup; |
||
19 | |||
20 | /** |
||
21 | * @param EntityDocument[] $entities |
||
22 | */ |
||
23 | 4 | public function __construct( array $entities ) { |
|
24 | 4 | parent::__construct(); |
|
25 | |||
26 | 4 | $this->entityLookup = new DispatchingEntityLookup( new InMemoryEntityLookup( $entities ) ); |
|
27 | 4 | } |
|
28 | |||
29 | /** |
||
30 | * @see EntityStore::getEntityLookup |
||
31 | */ |
||
32 | 1 | public function getEntityLookup() { |
|
35 | |||
36 | /** |
||
37 | * @see EntityStore::getEntityDocumentLookup |
||
38 | */ |
||
39 | 1 | public function getEntityDocumentLookup() { |
|
42 | |||
43 | /** |
||
44 | * @see EntityStore::getItemLookup |
||
45 | */ |
||
46 | 1 | public function getItemLookup() { |
|
49 | |||
50 | /** |
||
51 | * @see EntityStore::getPropertyLookup |
||
52 | */ |
||
53 | 1 | public function getPropertyLookup() { |
|
56 | } |
||
57 |