Completed
Push — master ( d791dd...2d8ee5 )
by Ventaquil
02:14
created

AbstractPoint   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 23
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A move() 0 4 1
A equals() 0 4 1
A lowerDimension() 0 4 1
1
<?php
2
3
namespace PHPAlgorithms\GraphTools;
4
5
use PHPAlgorithms\GraphTools\Interfaces\PointInterface;
6
use PHPAlgorithms\GraphTools\Traits\MagicGet;
7
use PHPAlgorithms\GraphTools\Traits\toArray;
8
9
class AbstractPoint implements PointInterface {
10
    use MagicGet, toArray;
11
12
    public function __construct()
13
    {
14
15
    }
16
17
    public function move()
18
    {
19
        
20
    }
21
22
    public function equals($point)
23
    {
24
        return $this === $point;
25
    }
26
27
    public function lowerDimension()
28
    {
29
        return null;
30
    }
31
}
32