Passed
Push — all-contributors/add-formikaio ( 169f6c )
by
unknown
08:10 queued 05:51
created

RectPatternSolid   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 15
ccs 0
cts 12
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A DoPattern() 0 8 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * JPGraph v4.0.3
5
 */
6
7
namespace Amenadiel\JpGraph\Graph;
8
9
/**
10
 * @class RectPatternSolid
11
 * // Implements a solid band
12
 */
13
class RectPatternSolid extends RectPattern
14
{
15
    public function __construct($aColor = 'black', $aWeight = 1)
16
    {
17
        parent::__construct($aColor, $aWeight);
18
    }
19
20
    public function DoPattern($aImg)
21
    {
22
        $aImg->SetColor($this->color);
23
        $aImg->FilledRectangle(
24
            $this->rect->x,
25
            $this->rect->y,
26
            $this->rect->xe,
27
            $this->rect->ye
28
        );
29
    }
30
}
31