1 | <?php |
||
21 | class Place extends Vector |
||
22 | { |
||
23 | /** |
||
24 | * @param array $coordinates |
||
25 | * |
||
26 | * @return Place |
||
27 | * |
||
28 | * @throws Assert\AssertionFailedException |
||
29 | */ |
||
30 | 13 | public static function create(array $coordinates): Place |
|
37 | |||
38 | /** |
||
39 | * @param callable $fn |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 6 | public function map(callable $fn): array |
|
47 | |||
48 | /** |
||
49 | * @param Vector $v |
||
50 | * |
||
51 | * @return Place |
||
52 | */ |
||
53 | 4 | public static function createFromVector(Vector $v): Place |
|
57 | } |
||
58 |