| 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 | * @param string $description |
||
| 35 | */ |
||
| 36 | public function __construct($description) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * __toString |
||
| 58 | * |
||
| 59 | * Return a string representation of Box. |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function __toString() |
||
| 73 | } |
||
| 74 |