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