ScatterDataPoint::getR()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace rtens\domin\delivery\web\renderers\charting\data;
2
3
class ScatterDataPoint {
4
5
    /** @var double */
6
    private $x;
7
8
    /** @var double */
9
    private $y;
10
11
    /** @var double */
12
    private $r;
13
14
    /**
15
     * @param float $x
16
     * @param float $y
17
     * @param float $r
18
     */
19
    public function __construct($x, $y, $r = 1.0) {
20
        $this->x = $x;
21
        $this->y = $y;
22
        $this->r = $r;
23
    }
24
25
    /**
26
     * @return float
27
     */
28
    public function getX() {
29
        return $this->x;
30
    }
31
32
    /**
33
     * @return float
34
     */
35
    public function getY() {
36
        return $this->y;
37
    }
38
39
    /**
40
     * @return float
41
     */
42
    public function getR() {
43
        return $this->r;
44
    }
45
46
}