1 | <?php |
||
12 | class EntityInserter { |
||
13 | |||
14 | private $connection; |
||
15 | private $entityInserters; |
||
16 | |||
17 | /** |
||
18 | * @param Connection $connection |
||
19 | * @param EntityInsertionStrategy[] $entityInserters |
||
20 | */ |
||
21 | public function __construct( Connection $connection, array $entityInserters ) { |
||
25 | |||
26 | public function insertEntity( EntityDocument $entity ) { |
||
41 | |||
42 | /** |
||
43 | * @param EntityDocument $entity |
||
44 | * @return EntityInsertionStrategy |
||
45 | * @throws QueryEngineException |
||
46 | */ |
||
47 | private function getEntityInserterFor( EntityDocument $entity ) { |
||
56 | |||
57 | } |
||
58 |