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

SearchService::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
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