1 | <?php |
||
10 | class InMemoryEntityTermStore implements EntityTermStore { |
||
11 | private $entityTerms = []; |
||
12 | |||
13 | public function setTerms( EntityId $entityId, array $termsArray ) { |
||
16 | |||
17 | public function unsetTerms( EntityId $entityId ) { |
||
20 | |||
21 | /** |
||
22 | * check that terms for the given entity id has the given terms stored |
||
23 | * |
||
24 | * @param EntityId $entityId |
||
25 | * @param array $termsArray same as $termsArray for InMemoryEntityTermStore::setTerms() |
||
26 | * |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function hasExactTerms( EntityId $entityId, array $termsArray ) { |
||
36 | |||
37 | /** |
||
38 | * Check that given entity id has no terms stored |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function hasNoTerms( EntityId $entityId ) { |
||
45 | |||
46 | } |
||
47 |