| 1 | <?php |
||
| 13 | class Node |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | private $page = 1; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $link = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var bool |
||
| 27 | */ |
||
| 28 | private $is_current = false; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $page |
||
| 32 | * @param string $link |
||
| 33 | * @param bool $is_current |
||
| 34 | */ |
||
| 35 | 23 | public function __construct($page = 1, $link = '', $is_current = false) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | 8 | public function isCurrent() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 16 | public function getLink() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | 22 | public function getPage() |
|
| 65 | } |
||
| 66 |