Completed
Pull Request — master (#99)
by De Cramer
02:57
created

ManialinkFactoryContext::getClassName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui;
4
5
use eXpansion\Framework\Core\Plugins\Gui\ActionFactory;
6
use eXpansion\Framework\Core\Plugins\GuiHandler;
7
use eXpansion\Framework\Core\Plugins\UserGroups\Factory;
8
9
10
/**
11
 * Class ManialinkFactoryContext
12
 *
13
 * @package eXpansion\Framework\Core\Model\Gui;
14
 * @author  oliver de Cramer <[email protected]>
15
 */
16
class ManialinkFactoryContext
17
{
18
    /** @var  string */
19
    protected $className;
20
21
    /** @var  GuiHandler */
22
    protected $guiHandler;
23
24
    /** @var Factory */
25
    protected $groupFactory;
26
27
    /** @var ActionFactory */
28
    protected $actionFactory;
29
30
    /**
31
     * ManialinkFactoryContext constructor.
32
     *
33
     * @param GuiHandler    $guiHandler
34
     * @param Factory       $groupFactory
35
     * @param ActionFactory $actionFactory
36
     */
37 6
    public function __construct($className, GuiHandler $guiHandler, Factory $groupFactory, ActionFactory $actionFactory)
38
    {
39 6
        $this->className = $className;
40 6
        $this->guiHandler = $guiHandler;
41 6
        $this->groupFactory = $groupFactory;
42 6
        $this->actionFactory = $actionFactory;
43 6
    }
44
45
    /**
46
     * @return string
47
     */
48 6
    public function getClassName()
49
    {
50 6
        return $this->className;
51
    }
52
53
    /**
54
     * @return GuiHandler
55
     */
56 6
    public function getGuiHandler()
57
    {
58 6
        return $this->guiHandler;
59
    }
60
61
    /**
62
     * @return Factory
63
     */
64 6
    public function getGroupFactory()
65
    {
66 6
        return $this->groupFactory;
67
    }
68
69
    /**
70
     * @return ActionFactory
71
     */
72 6
    public function getActionFactory()
73
    {
74 6
        return $this->actionFactory;
75
    }
76
}