Add fields and docs to WikiExporter
authorDaimona Eaytoy <daimona.wiki@gmail.com>
Tue, 9 Jul 2019 08:33:03 +0000 (10:33 +0200)
committerDaimona Eaytoy <daimona.wiki@gmail.com>
Tue, 9 Jul 2019 08:33:03 +0000 (10:33 +0200)
Three fields were undeclared, thus raising some phan warnings.

Change-Id: Ib7934b507cb69d29a3d2422dadc24b12207a12ad

includes/export/WikiExporter.php

index f834fb1..8b0ed00 100644 (file)
@@ -67,6 +67,15 @@ class WikiExporter {
        /** @var XmlDumpWriter */
        private $writer;
 
+       /** @var IDatabase */
+       protected $db;
+
+       /** @var array|int */
+       protected $history;
+
+       /** @var array|null */
+       protected $limitNamespaces;
+
        /**
         * Returns the default export schema version, as defined by $wgXmlDumpSchemaVersion.
         * @return string
@@ -87,8 +96,11 @@ class WikiExporter {
         * @param null|array $limitNamespaces Comma-separated list of namespace numbers
         *   to limit results
         */
-       function __construct( $db, $history = self::CURRENT, $text = self::TEXT,
-                       $limitNamespaces = null
+       function __construct(
+               $db,
+               $history = self::CURRENT,
+               $text = self::TEXT,
+               $limitNamespaces = null
        ) {
                $this->db = $db;
                $this->history = $history;