AbstractGearmanDispatcher   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 19
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * Gearman Bundle for Symfony2 / Symfony3
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * Feel free to edit as you please, and have fun.
10
 *
11
 * @author Marc Morera <[email protected]>
12
 */
13
14
namespace Mkk\GearmanBundle\Dispatcher\Abstracts;
15
16
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
17
18
/**
19
 * Gearman execute methods. All Worker methods
20
 *
21
 * @author Marc Morera <[email protected]>
22
 */
23
abstract class AbstractGearmanDispatcher
24
{
25
    /**
26
     * @var EventDispatcherInterface
27
     *
28
     * Event dispatcher
29
     */
30
    protected $eventDispatcher;
31
32
    /**
33
     * Construct method
34
     *
35
     * @param EventDispatcherInterface $eventDispatcher Event dispatcher
36
     */
37 3
    public function __construct(EventDispatcherInterface $eventDispatcher)
38
    {
39 3
        $this->eventDispatcher = $eventDispatcher;
40 3
    }
41
}
42