Passed
Push — master ( 319fcb...7a107a )
by Rafael
04:41
created

EventDispatcherAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 13
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEventDispatcher() 0 3 1
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Events;
12
13
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
14
15
trait EventDispatcherAwareTrait
16
{
17
    /**
18
     * @var EventDispatcherInterface
19
     */
20
    protected $eventDispatcher;
21
22
    /**
23
     * @param EventDispatcherInterface $eventDispatcher
24
     */
25 22
    public function setEventDispatcher(EventDispatcherInterface $eventDispatcher):void
26
    {
27 22
        $this->eventDispatcher = $eventDispatcher;
28 22
    }
29
}
30