ScatterDataPoint   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 44
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getX() 0 3 1
A getY() 0 3 1
A getR() 0 3 1
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
}