1 | <?php |
||
14 | class CachedEntityDocumentLookup implements EntityDocumentLookup { |
||
15 | |||
16 | /** |
||
17 | * @var EntityDocumentLookup |
||
18 | */ |
||
19 | private $entityLookup; |
||
20 | |||
21 | /** |
||
22 | * @var EntityDocumentCache |
||
23 | */ |
||
24 | private $entityCache; |
||
25 | |||
26 | /** |
||
27 | * @param EntityDocumentLookup $entityLookup |
||
28 | * @param EntityDocumentCache $entityCache |
||
29 | */ |
||
30 | 7 | public function __construct( EntityDocumentLookup $entityLookup, EntityDocumentCache $entityCache ) { |
|
34 | |||
35 | /** |
||
36 | * @see EntityDocumentLookup::getEntityDocumentForId |
||
37 | */ |
||
38 | 3 | public function getEntityDocumentForId( EntityId $entityId ) { |
|
50 | |||
51 | /** |
||
52 | * @see EntityDocumentLookup::getEntityDocumentsForIds |
||
53 | */ |
||
54 | 4 | public function getEntityDocumentsForIds( array $entityIds ) { |
|
78 | } |
||
79 |