1 | <?php |
||
22 | class Point |
||
23 | { |
||
24 | public $x; |
||
25 | public $y; |
||
26 | |||
27 | /** |
||
28 | * __construct |
||
29 | * |
||
30 | * Create a point from a string description. |
||
31 | * |
||
32 | * @param string $description |
||
33 | */ |
||
34 | public function __construct($description) |
||
50 | |||
51 | /** |
||
52 | * __toString |
||
53 | * |
||
54 | * Return a string representation of Point. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function __toString() |
||
66 | } |
||
67 |