From ec9afed7cec7a3a93b16ed1ec81554153233a745 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 6 Dec 2011 15:23:21 +0000 Subject: [PATCH] Add a getExpiry method to Block (rather than direct member variable access. Yuck) --- includes/Block.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/Block.php b/includes/Block.php index 7aa1bc1dc8..c153335026 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -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 -- 2.20.1