From: Sam Reed Date: Tue, 6 Dec 2011 15:23:21 +0000 (+0000) Subject: Add a getExpiry method to Block (rather than direct member variable access. Yuck) X-Git-Tag: 1.31.0-rc.0~26161 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=ec9afed7cec7a3a93b16ed1ec81554153233a745;p=lhc%2Fweb%2Fwiklou.git Add a getExpiry method to Block (rather than direct member variable access. Yuck) --- 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