1 | <?php |
||
18 | class DisabledEntityTypesEntityLookup implements EntityLookup { |
||
19 | |||
20 | /** |
||
21 | * @var EntityLookup |
||
22 | */ |
||
23 | private $entityLookup; |
||
24 | |||
25 | /** |
||
26 | * @var string[] |
||
27 | */ |
||
28 | private $disabledEntityTypes = []; |
||
29 | |||
30 | /** |
||
31 | * @param EntityLookup $entityLookup |
||
32 | * @param string[] $disabledEntityTypes |
||
33 | */ |
||
34 | public function __construct( EntityLookup $entityLookup, array $disabledEntityTypes ) { |
||
40 | |||
41 | /** |
||
42 | * @see EntityLookup::getEntity |
||
43 | * |
||
44 | * @param EntityId $entityId |
||
45 | * |
||
46 | * @throws EntityLookupException |
||
47 | * @return EntityDocument |
||
48 | */ |
||
49 | public function getEntity( EntityId $entityId ) { |
||
59 | |||
60 | /** |
||
61 | * @see EntityLookup::hasEntity |
||
62 | * |
||
63 | * @param EntityId $entityId |
||
64 | * |
||
65 | * @return bool |
||
66 | * @throws EntityLookupException |
||
67 | */ |
||
68 | public function hasEntity( EntityId $entityId ) { |
||
71 | |||
72 | } |
||
73 |