Rectangle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
/**
4
 * JPGraph v4.0.3
5
 */
6
7
class Rectangle
8
{
9
    public $x;
10
    public $y;
11
    public $w;
12
    public $h;
13
    public $xe;
14
    public $ye;
15
16
    public function __construct($aX, $aY, $aWidth, $aHeight)
17
    {
18
        $this->x  = $aX;
19
        $this->y  = $aY;
20
        $this->w  = $aWidth;
21
        $this->h  = $aHeight;
22
        $this->xe = $aX + $aWidth - 1;
23
        $this->ye = $aY + $aHeight - 1;
24
    }
25
}
26