Completed
Pull Request — master (#51)
by
unknown
02:43
created

TitleBackGroundFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
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 13
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 10 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
    public function create($width, $height, $index = 0)
17
    {
18
        // TODO set proper default size & font.
19
        $background = new Quad(); //BgRacePlayerName
20
        $background->setBackgroundColor('fff')
21
            ->setPosition(0, -$height + 0.25)
22
            ->setSize($width, 0.25);
23
24
        return $background;
25
    }
26
}
27