Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Space implements SpaceInterface |
||
9 | { |
||
10 | public static function singleton(): self |
||
11 | { |
||
12 | static $space = new self(); |
||
13 | |||
14 | return $space; |
||
15 | } |
||
16 | |||
17 | public function isEqualTo(SpaceInterface $other): bool |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param array{0: float, 1: float} $coordinates |
||
24 | */ |
||
25 | public function makePoint(array $coordinates): PointInterface |
||
28 | } |
||
29 | } |
||
30 |