Completed
Push — master ( 5cddab...efcf22 )
by Axel
16:03
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Routes.
5
 *
6
 * @copyright Zikula contributors (Zikula)
7
 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
8
 * @author Zikula contributors <[email protected]>.
9
 * @see https://ziku.la
10
 * @version Generated by ModuleStudio 1.4.0 (https://modulestudio.de).
11
 */
12
13
declare(strict_types=1);
14
15
namespace Zikula\RoutesModule\Event\Base;
16
17
use Knp\Menu\FactoryInterface;
18
use Knp\Menu\ItemInterface;
19
20
/**
21
 * Event base class for extending item actions menu.
22
 */
23
abstract class AbstractItemActionsMenuPreConfigurationEvent
24
{
25
    /**
26
     * @var FactoryInterface.
0 ignored issues
show
Documentation Bug introduced by
The doc comment FactoryInterface. at position 0 could not be parsed: Unknown type name 'FactoryInterface.' at position 0 in FactoryInterface..
Loading history...
27
     */
28
    protected $factory;
29
30
    /**
31
     * @var ItemInterface
32
     */
33
    protected $menu;
34
35
    /**
36
     * @var array
37
     */
38
    protected $options;
39
40
    public function __construct(
41
        FactoryInterface $factory,
42
        ItemInterface $menu,
43
        array $options = []
44
    ) {
45
        $this->factory = $factory;
46
        $this->menu = $menu;
47
        $this->options = $options;
48
    }
49
50
    /**
51
     * @return FactoryInterface
52
     */
53
    public function getFactory(): FactoryInterface
54
    {
55
        return $this->factory;
56
    }
57
58
    /**
59
     * @return ItemInterface
60
     */
61
    public function getMenu(): ItemInterface
62
    {
63
        return $this->menu;
64
    }
65
66
    /**
67
     * @return array
68
     */
69
    public function getOptions(): array
70
    {
71
        return $this->options;
72
    }
73
}
74