Completed
Pull Request — master (#51)
by De Cramer
02:45
created

TitleBackGroundFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
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 12
ccs 0
cts 7
cp 0
rs 10
c 0
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\Quads\Quad_BgsPlayerCard;
6
7
/**
8
 * Class LineBuilder
9
 *
10
 * @package eXpansion\Framework\Core\Model\Gui\Builders;
11
 * @author  oliver de Cramer <[email protected]>
12
 */
13
class TitleBackGroundFactory extends BackGroundFactory
14
{
15
    public function create($width, $height, $index = 0)
16
    {
17
        // TODO set proper default size & font.
18
        $background = new Quad_BgsPlayerCard(); //BgRacePlayerName
19
        $background->setSubStyle(Quad_BgsPlayerCard::SUBSTYLE_BgRacePlayerName)
20
            ->setSize($width, $height);
21
22
        return $background;
23
    }
24
}