Completed
Push — dev ( 845ef5...8eacd8 )
by
unknown
02:50
created

TitleBackGroundFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 9 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui\Factory;
4
5
use FML\Controls\Quad;
6
use FML\Controls\Quads\Quad_BgsPlayerCard;
7
8
/**
9
 * Class LineBuilder
10
 *
11
 * @package eXpansion\Framework\Core\Model\Gui\Builders;
12
 * @author  oliver de Cramer <[email protected]>
13
 */
14
class TitleBackGroundFactory extends BackGroundFactory
15
{
16 6
    public function create($width, $height, $index = 0)
17
    {
18 6
        $background = new Quad();
19 6
        $background->setBackgroundColor('fff')
20 6
            ->setPosition(0, -$height + 0.25)
21 6
            ->setSize($width, 0.25);
22
23 6
        return $background;
24
    }
25
}
26