Completed
Pull Request — master (#75)
by
unknown
07:18
created

ScriptSettingsFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createContent() 0 5 1
1
<?php
2
3
namespace eXpansion\Bundle\Menu\Plugins\Gui;
4
5
use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
6
use eXpansion\Framework\Core\Model\Gui\Widget;
7
use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
8
use FML\Controls\Label;
9
use FML\Controls\Quad;
10
11
class ScriptSettingsFactory extends WidgetFactory
12
{
13
14
15
    /**
16
     * @param ManialinkInterface|Widget $manialink
17
     */
18
    protected function createContent(ManialinkInterface $manialink)
19
    {
20
        $label = new Label("test");
21
        $manialink->addChild($label);
22
    }
23
24
25
}
26