Merge "FauxRequest: don’t override getValues()"
[lhc/web/wiklou.git] / includes / import / WikiRevision.php
index e36d673..e0799c0 100644 (file)
@@ -144,6 +144,12 @@ class WikiRevision implements ImportableUploadRevision, ImportableOldRevision {
         */
        public $sha1base36 = false;
 
+       /**
+        * @since 1.34
+        * @var string[]
+        */
+       protected $tags = [];
+
        /**
         * @since 1.17
         * @var string
@@ -179,9 +185,16 @@ class WikiRevision implements ImportableUploadRevision, ImportableOldRevision {
        /** @var bool */
        private $mNoUpdates = false;
 
-       /** @var Config $config */
+       /**
+        * @deprecated since 1.31, along with self::downloadSource()
+        * @var Config $config
+        */
        private $config;
 
+       /**
+        * @param Config $config Deprecated since 1.31, along with self::downloadSource(). Just pass an
+        *  empty HashConfig.
+        */
        public function __construct( Config $config ) {
                $this->config = $config;
        }
@@ -310,6 +323,14 @@ class WikiRevision implements ImportableUploadRevision, ImportableOldRevision {
                $this->sha1base36 = $sha1base36;
        }
 
+       /**
+        * @since 1.34
+        * @param string[] $tags
+        */
+       public function setTags( array $tags ) {
+               $this->tags = $tags;
+       }
+
        /**
         * @since 1.12.2
         * @param string $filename
@@ -509,6 +530,14 @@ class WikiRevision implements ImportableUploadRevision, ImportableOldRevision {
                return false;
        }
 
+       /**
+        * @since 1.34
+        * @return string[]
+        */
+       public function getTags() {
+               return $this->tags;
+       }
+
        /**
         * @since 1.17
         * @return string