Completed
Push — ezp_31113 ( c40d73 )
by
unknown
73:50 queued 54:12
created

AssignSectionToSubtree   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A receive() 0 8 2
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\Search\Common\Slot;
10
11
use eZ\Publish\Core\Search\Common\Slot;
12
use eZ\Publish\Core\SignalSlot\Signal;
13
use eZ\Publish\Core\SignalSlot\Signal\SectionService\AssignSectionToSubtreeSignal;
14
15
class AssignSectionToSubtree extends AbstractSubtree
16
{
17
    public function receive(Signal $signal)
18
    {
19
        if (!$signal instanceof AssignSectionToSubtreeSignal) {
20
            return;
21
        }
22
23
        $this->indexSubtree($signal->locationId);
24
    }
25
}
26