Add a getExpiry method to Block (rather than direct member variable access. Yuck)
authorSam Reed <reedy@users.mediawiki.org>
Tue, 6 Dec 2011 15:23:21 +0000 (15:23 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 6 Dec 2011 15:23:21 +0000 (15:23 +0000)
includes/Block.php

index 7aa1bc1..c153335 100644 (file)
@@ -1139,6 +1139,15 @@ class Block {
                return $this->target;
        }
 
+       /**
+        * @since 1.19
+        *
+        * @return Mixed|string
+        */
+       public function getExpiry() {
+               return $this->mExpiry;
+       }
+
        /**
         * Set the target for this block, and update $this->type accordingly
         * @param $target Mixed