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

TitleBackGroundFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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