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

TextPropertyBelow   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A GetColWidth() 0 5 1
1
<?php
2
3
/**
4
 * JPGraph v4.0.3
5
 */
6
7
namespace Amenadiel\JpGraph\Text;
8
9
/**
10
 * @class TextPropertyBelow
11
 */
12
class TextPropertyBelow extends TextProperty
13
{
14
    public function __construct($aTxt = '')
15
    {
16
        parent::__construct($aTxt);
17
    }
18
19
    public function GetColWidth($aImg, $aMargin = 0)
20
    {
21
        // Since we are not stroking the title in the columns
22
        // but rather under the graph we want this to return 0.
23
        return [0];
24
    }
25
}
26