Completed
Push — ezp-30616-follow-up ( 2e0607...b74676 )
by
unknown
35:08 queued 20:12
created

SearchService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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\Event;
10
11
use eZ\Publish\API\Repository\SearchService as SearchServiceInterface;
12
use eZ\Publish\SPI\Repository\Decorator\SearchServiceDecorator;
13
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
14
15
class SearchService extends SearchServiceDecorator
16
{
17
    /** @var \Symfony\Contracts\EventDispatcher\EventDispatcherInterface */
18
    protected $eventDispatcher;
19
20
    public function __construct(
21
        SearchServiceInterface $innerService,
22
        EventDispatcherInterface $eventDispatcher
23
    ) {
24
        parent::__construct($innerService);
25
26
        $this->eventDispatcher = $eventDispatcher;
27
    }
28
}
29