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

AbstractMenuBuilder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
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