1 | <?php |
||
17 | class Node |
||
18 | { |
||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $page = 1; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $link = ''; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $is_current = false; |
||
33 | |||
34 | /** |
||
35 | * @param int $page |
||
36 | * @param string $link |
||
37 | * @param bool $is_current |
||
38 | */ |
||
39 | 22 | public function __construct($page = 1, $link = '', $is_current = false) |
|
45 | |||
46 | /** |
||
47 | * @return bool |
||
48 | */ |
||
49 | 2 | public function isCurrent() |
|
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 16 | public function getLink() |
|
61 | |||
62 | /** |
||
63 | * @return int |
||
64 | */ |
||
65 | 16 | public function getPage() |
|
69 | } |
||
70 |