aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/PPDStack_Hash.php
diff options
context:
space:
mode:
authorZoranzoki21 <zorandori4444@gmail.com>2019-04-21 01:34:48 +0200
committerReedy <reedy@wikimedia.org>2019-04-27 00:41:47 +0000
commit4226fada45a83ad56e91ce7638d17d12fecec8ca (patch)
tree0ad98fc5d81071d998667f81904eb9206f8fc6fc /includes/parser/PPDStack_Hash.php
parentf415b6e16281f50b2bc8f499773297b3498fa15e (diff)
downloadmediawikicore-4226fada45a83ad56e91ce7638d17d12fecec8ca.tar.gz
mediawikicore-4226fada45a83ad56e91ce7638d17d12fecec8ca.zip
Split parser related files to have one class in one file
Change-Id: I36b26609ccb3f135a22961b32a46cdc06603b3e4
Diffstat (limited to 'includes/parser/PPDStack_Hash.php')
-rw-r--r--includes/parser/PPDStack_Hash.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/includes/parser/PPDStack_Hash.php b/includes/parser/PPDStack_Hash.php
new file mode 100644
index 000000000000..1e50b1ca1861
--- /dev/null
+++ b/includes/parser/PPDStack_Hash.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Parser
+ */
+
+/**
+ * Stack class to help Preprocessor::preprocessToObj()
+ * @ingroup Parser
+ */
+// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
+class PPDStack_Hash extends PPDStack {
+
+ public function __construct() {
+ $this->elementClass = PPDStackElement_Hash::class;
+ parent::__construct();
+ $this->rootAccum = [];
+ }
+}