| 1 | <?php |
||
| 14 | class TermStoreFactory { |
||
| 15 | |||
| 16 | private $connection; |
||
| 17 | private $config; |
||
| 18 | |||
| 19 | public function __construct( Connection $connection, TermStoreConfig $config ) { |
||
| 23 | |||
| 24 | public function newTermStoreInstaller(): TermStoreInstaller { |
||
| 30 | |||
| 31 | public function newEntityIdLookup(): EntityIdLookup { |
||
| 37 | |||
| 38 | public function newTermStoreWriter(): TermStoreWriter { |
||
| 41 | |||
| 42 | public function newLabelLookup(): LabelLookup { |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Work with a more segregated interface (TermStoreWriter, EntityIdLookup, LabelLookup) if you can. |
||
| 48 | */ |
||
| 49 | public function newTermStore(): TermStore { |
||
| 52 | |||
| 53 | } |