| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class At implements Position |
||
| 9 | { |
||
| 10 | private $coordinates; |
||
| 11 | |||
| 12 | private function __construct(float ...$coordinates) |
||
| 13 | { |
||
| 14 | $this->coordinates = $coordinates; |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function position(float ...$coordinates): Position |
||
| 18 | { |
||
| 19 | return new self(...$coordinates); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function offsetExists($offset): bool |
||
| 25 | } |
||
| 26 | |||
| 27 | public function offsetGet($offset): float |
||
| 30 | } |
||
| 31 | |||
| 32 | public function offsetSet($offset, $value): void |
||
| 35 | } |
||
| 36 | |||
| 37 | public function offsetUnset($offset): void |
||
| 42 |