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

WidgetLabel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 0
cts 11
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 3
crap 2
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