Completed
Pull Request — master (#260)
by
unknown
03:40
created

WidgetLabel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace eXpansion\Framework\Gui\Builders;
4
5
use eXpansion\Framework\Gui\Components\uiLabel;
6
7
/**
8
 * Class WidgetLabel
9
 * @package eXpansion\Framework\Gui\Builders
10
 */
11
class WidgetLabel extends uiLabel
12
{
13
14
    public function __construct(string $text = "", string $type = self::TYPE_NORMAL, string $controlId = null)
15
    {
16
        parent::__construct($text, $type, $controlId);
17
        $this->setAreaColor("0004")
18
            ->setAreaFocusColor("0004")
19
            ->setTextSize(1)
20
            ->setTextFont("")
21
            ->setTextPrefix(" ")
22
            ->setAlign("left", "center2")
23
            ->setScriptEvents(true);
24
    }
25
26
}
27