Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function receive(Signal $signal) |
||
25 | { |
||
26 | if (!$signal instanceof Signal\LocationService\SwapLocationSignal) { |
||
27 | return; |
||
28 | } |
||
29 | $content1Info = $this->persistenceHandler->contentHandler()->loadContentInfo($signal->content1Id); |
||
30 | $content2Info = $this->persistenceHandler->contentHandler()->loadContentInfo($signal->content2Id); |
||
31 | $this->searchHandler->indexContent( |
||
32 | $this->persistenceHandler->contentHandler()->load($content1Info->id, $content1Info->currentVersionNo) |
||
33 | ); |
||
34 | $this->searchHandler->indexContent( |
||
35 | $this->persistenceHandler->contentHandler()->load($content2Info->id, $content2Info->currentVersionNo) |
||
36 | ); |
||
37 | $this->searchHandler->indexLocation($this->persistenceHandler->locationHandler()->load($signal->location1Id)); |
||
38 | $this->searchHandler->indexLocation($this->persistenceHandler->locationHandler()->load($signal->location2Id)); |
||
39 | } |
||
40 | } |
||
41 |