Completed
Pull Request — master (#146)
by De Cramer
02:41
created

FmlManialinkFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
4
namespace eXpansion\Framework\Core\Plugins\Gui;
5
6
use eXpansion\Framework\Core\Helpers\Translations;
7
use eXpansion\Framework\Core\Model\Gui\ManialinkFactoryContext;
8
use eXpansion\Framework\Gui\Ui\Factory as UiFactory;
9
use FML\Controls\Control;
10
11
12
/**
13
 * Class FmlManialinkFactory
14
 *
15
 * @package eXpansion\Framework\Core\Plugins\Gui;
16
 * @author  oliver de Cramer <[email protected]>
17
 */
18
class FmlManialinkFactory extends ManialinkFactory
19
{
20
    /** @var Translations */
21
    protected $translationsHelper;
22
23
    /** @var UiFactory  */
24
    protected $uiFactory;
25
26
    public function __construct($name, $sizeX, $sizeY, $posX = null, $posY = null, ManialinkFactoryContext $context)
27
    {
28
        parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
29
30
        // Hack for FML to use default MP alignements.
31
        Control::clearDefaultAlign();
32
    }
33
34
35
}