Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class PointsCollection |
||
6 | { |
||
7 | /** |
||
8 | * @var Point[] |
||
9 | */ |
||
10 | private $points = []; |
||
11 | |||
12 | /** |
||
13 | * @param Point $point |
||
14 | * @return $this |
||
15 | */ |
||
16 | public function add(Point $point) |
||
17 | { |
||
18 | $this->points[] = $point; |
||
19 | |||
20 | return $this; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return Point[] |
||
25 | */ |
||
26 | public function all() |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return int |
||
33 | */ |
||
34 | public function total() |
||
37 | } |
||
38 | } |