| 1 | <?php |
||
| 8 | class TablePosition |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | public $row; |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | public $cell; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * TablePosition constructor. |
||
| 21 | * |
||
| 22 | * @param int $row |
||
| 23 | * @param int $cell |
||
| 24 | */ |
||
| 25 | 1 | public function __construct($row, $cell) |
|
| 26 | { |
||
| 27 | 1 | $this->row = $row; |
|
| 28 | 1 | $this->cell = $cell; |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | public function getRow() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | public function getCell() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function __toString() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param TablePosition $a |
||
| 57 | * @param TablePosition $b |
||
| 58 | * |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | public static function compare($a, $b) |
||
| 69 | } |
||
| 70 |