Completed
Push — master ( 5e0a7d...23f988 )
by De Cramer
03:04
created

ManialinkFactoryContext   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 61
rs 10
ccs 14
cts 14
cp 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getClassName() 0 4 1
A getGuiHandler() 0 4 1
A getGroupFactory() 0 4 1
A getActionFactory() 0 4 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
}