Completed
Pull Request — master (#130)
by De Cramer
02:47
created

WindowFactoryContext::getWindowFrameFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui;
4
5
use eXpansion\Framework\Core\Helpers\Translations;
6
use eXpansion\Framework\Core\Model\Gui\Factory\WindowFrameFactory;
7
use eXpansion\Framework\Core\Plugins\Gui\ActionFactory;
8
use eXpansion\Framework\Core\Plugins\GuiHandler;
9
use eXpansion\Framework\Core\Plugins\GuiHandlerInterface;
10
use eXpansion\Framework\Core\Plugins\UserGroups\Factory;
11
use \eXpansion\Framework\Gui\Ui\Factory as UiFactory;
12
13
/**
14
 * Class WindowFactoryContext
15
 *
16
 * @package eXpansion\Framework\Core\Model\Gui;
17
 * @author  oliver de Cramer <[email protected]>
18
 */
19
class WindowFactoryContext extends WidgetFactoryContext
20
{
21
22
    /** @var  WindowFrameFactory */
23
    protected $windowFrameFactory;
24
25
    /**
26
     * WindowFactoryContext constructor.
27
     *
28
     * @param $className
29
     * @param GuiHandler $guiHandler
30
     * @param Factory $groupFactory
31
     * @param ActionFactory $actionFactory
32
     * @param Translations $translations
33
     * @param UiFactory $uiFactory
34
     * @param WindowFrameFactory $windowFrameFactory
35
     */
36
    public function __construct(
37
        $className,
38
        GuiHandlerInterface $guiHandler,
39
        Factory $groupFactory,
40
        ActionFactory $actionFactory,
41
        Translations $translations,
42
        UiFactory $uiFactory,
43
        WindowFrameFactory $windowFrameFactory
44
    ) {
45
46
        parent::__construct($className, $guiHandler, $groupFactory, $actionFactory, $translations, $uiFactory);
47
48
        $this->windowFrameFactory = $windowFrameFactory;
49
    }
50
51
    /**
52
     * @return WindowFrameFactory
53
     */
54
    public function getWindowFrameFactory()
55
    {
56
        return $this->windowFrameFactory;
57
    }
58
}
59