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