@@ 176-183 (lines=8) @@ | ||
173 | * |
|
174 | * @return TabPane |
|
175 | */ |
|
176 | public function removeTabByPosition($position) |
|
177 | { |
|
178 | if (is_numeric($position) && $position < count($this->tabs)) { |
|
179 | array_splice($this->tabs, $position, 1); |
|
180 | } |
|
181 | ||
182 | return $this; |
|
183 | } |
|
184 | ||
185 | /** |
|
186 | * @return TabInterface[] |
|
@@ 214-221 (lines=8) @@ | ||
211 | * |
|
212 | * @return TabInterface|null |
|
213 | */ |
|
214 | public function getTabByPosition($position) |
|
215 | { |
|
216 | if (is_numeric($position) && $position < count($this->tabs)) { |
|
217 | return $this->tabs[$position]; |
|
218 | } |
|
219 | ||
220 | return null; |
|
221 | } |
|
222 | ||
223 | /** |
|
224 | * @return string |