| 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 | * @access public |
||
| 33 | * @param string $description |
||
| 34 | */ |
||
| 35 | public function __construct($description) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * __toString |
||
| 54 | * |
||
| 55 | * Return a string representation of Point. |
||
| 56 | * |
||
| 57 | * @access public |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function __toString() |
||
| 68 | } |
||
| 69 |