Rectangle::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
nc 1
nop 4
dl 0
loc 8
ccs 0
cts 8
cp 0
crap 2
rs 10
c 1
b 0
f 0
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