| 1 | <?php |
||
| 22 | class Box |
||
| 23 | { |
||
| 24 | public $topX; |
||
| 25 | public $topY; |
||
| 26 | public $bottomX; |
||
| 27 | public $bottomY; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * __construct |
||
| 31 | * |
||
| 32 | * Create a box from a string description. |
||
| 33 | * |
||
| 34 | * @access public |
||
| 35 | * @param string $description |
||
| 36 | */ |
||
| 37 | public function __construct($description) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * __toString |
||
| 59 | * |
||
| 60 | * Return a string representation of Point. |
||
| 61 | * |
||
| 62 | * @access public |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public function __toString() |
||
| 75 | } |
||
| 76 |