Completed
Push — master ( 12ace7...d998d0 )
by Kamil
35:58
created

AbstractMenuBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\UiBundle\Menu;
13
14
use Knp\Menu\FactoryInterface;
15
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16
17
/**
18
 * @author Paweł Jędrzejewski <[email protected]>
19
 */
20
abstract class AbstractMenuBuilder
21
{
22
    /**
23
     * @var FactoryInterface
24
     */
25
    protected $factory;
26
27
    /**
28
     * @var EventDispatcherInterface
29
     */
30
    protected $eventDispatcher;
31
32
    /**
33
     * @param FactoryInterface         $factory
34
     * @param EventDispatcherInterface $eventDispatcher
35
     */
36
    public function __construct(
37
        FactoryInterface $factory,
38
        EventDispatcherInterface $eventDispatcher
39
    ) {
40
        $this->factory = $factory;
41
        $this->eventDispatcher = $eventDispatcher;
42
    }
43
}
44