3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
25 // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
26 class PPNode_Hash_Array
implements PPNode
{
30 public function __construct( $value ) {
31 $this->value
= $value;
34 public function __toString() {
35 return var_export( $this, true );
38 public function getLength() {
39 return count( $this->value
);
42 public function item( $i ) {
43 return $this->value
[$i];
46 public function getName() {
50 public function getNextSibling() {
54 public function getChildren() {
58 public function getFirstChild() {
62 public function getChildrenOfType( $name ) {
66 public function splitArg() {
67 throw new MWException( __METHOD__
. ': not supported' );
70 public function splitExt() {
71 throw new MWException( __METHOD__
. ': not supported' );
74 public function splitHeading() {
75 throw new MWException( __METHOD__
. ': not supported' );