Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | private function getEntityRemoverFor( EntityDocument $entity ) { |
||
48 | foreach ( $this->entityRemovers as $entityInserter ) { |
||
49 | if ( $entityInserter->canRemove( $entity ) ) { |
||
50 | return $entityInserter; |
||
51 | } |
||
52 | } |
||
53 | |||
54 | throw new QueryEngineException( 'There is no removal strategy for ' . $entity->getId() ); |
||
55 | } |
||
56 | |||
58 |