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