1 | <?php |
||
28 | class Route extends BaseRoute implements |
||
29 | PersistableInterface, |
||
30 | RouteInterface, |
||
31 | TenantAwareInterface |
||
32 | { |
||
33 | use RouteTrait, TenantAwareTrait; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | protected $id; |
||
39 | |||
40 | /** |
||
41 | * @var Collection |
||
42 | */ |
||
43 | protected $articles; |
||
44 | |||
45 | /** |
||
46 | * @var RouteInterface |
||
47 | */ |
||
48 | protected $root; |
||
49 | |||
50 | /** |
||
51 | * @var RouteInterface |
||
52 | */ |
||
53 | protected $parent; |
||
54 | |||
55 | /** |
||
56 | * @var Collection|RouteInterface[] |
||
57 | */ |
||
58 | protected $children; |
||
59 | |||
60 | /** |
||
61 | * @var int |
||
62 | */ |
||
63 | protected $lft; |
||
64 | |||
65 | /** |
||
66 | * @var int |
||
67 | */ |
||
68 | protected $rgt; |
||
69 | |||
70 | /** |
||
71 | * @var int |
||
72 | */ |
||
73 | protected $level; |
||
74 | |||
75 | 103 | public function __construct() |
|
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function getArticles() |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function setArticles($articles) |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | 46 | public function getId() |
|
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | 12 | public function getRouteName() |
|
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function isRoot(): bool |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function getRoot(): RouteInterface |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | 50 | public function getParent() |
|
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | 2 | public function setParent(RouteInterface $parent = null) |
|
146 | |||
147 | /** |
||
148 | * @return Collection|RouteInterface[] |
||
149 | */ |
||
150 | public function getChildren() |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function hasChild(RouteInterface $route): bool |
||
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | */ |
||
166 | public function addChild(RouteInterface $route) |
||
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | public function removeChild(RouteInterface $route) |
||
184 | |||
185 | /** |
||
186 | * {@inheritdoc} |
||
187 | */ |
||
188 | public function getLeft(): int |
||
192 | |||
193 | /** |
||
194 | * {@inheritdoc} |
||
195 | */ |
||
196 | public function setLeft(int $left) |
||
200 | |||
201 | /** |
||
202 | * {@inheritdoc} |
||
203 | */ |
||
204 | public function getRight(): int |
||
208 | |||
209 | /** |
||
210 | * @param int $right |
||
211 | */ |
||
212 | public function setRight(int $right) |
||
216 | |||
217 | /** |
||
218 | * {@inheritdoc} |
||
219 | */ |
||
220 | public function getLevel(): int |
||
224 | |||
225 | /** |
||
226 | * {@inheritdoc} |
||
227 | */ |
||
228 | public function setLevel(int $level) |
||
232 | } |
||
233 |