X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FCacheTime.php;h=26d5bdd3f94c71f6d1985397dfecff168ef7547f;hp=05bcebef64cd6e3a9da3761b3a2bb18abc9a9eed;hb=478a58f63101f2b47d18a618296b5e7970fa3f24;hpb=a2db7ce05218774ff1a94a1f936b675f34d799e5 diff --git a/includes/parser/CacheTime.php b/includes/parser/CacheTime.php index 05bcebef64..26d5bdd3f9 100644 --- a/includes/parser/CacheTime.php +++ b/includes/parser/CacheTime.php @@ -27,21 +27,31 @@ * @ingroup Parser */ class CacheTime { - /** @var array|bool ParserOptions which have been taken into account to - * produce output or false if not available. + /** + * @var string[] ParserOptions which have been taken into account to produce output. */ public $mUsedOptions; - # Compatibility check + /** + * @var string|null Compatibility check + */ public $mVersion = Parser::VERSION; - # Time when this object was generated, or -1 for uncacheable. Used in ParserCache. + /** + * @var string|int TS_MW timestamp when this object was generated, or -1 for uncacheable. Used + * in ParserCache. + */ public $mCacheTime = ''; - # Seconds after which the object should expire, use 0 for uncacheable. Used in ParserCache. + /** + * @var int|null Seconds after which the object should expire, use 0 for uncacheable. Used in + * ParserCache. + */ public $mCacheExpiry = null; - # Revision ID that was parsed + /** + * @var int|null Revision ID that was parsed + */ public $mCacheRevisionId = null; /** @@ -71,7 +81,7 @@ class CacheTime { /** * @since 1.23 - * @param int $id Revision id + * @param int|null $id Revision ID */ public function setCacheRevisionId( $id ) { $this->mCacheRevisionId = $id; @@ -105,7 +115,7 @@ class CacheTime { * The value returned by getCacheExpiry is smaller or equal to the smallest number * that was provided to a call of updateCacheExpiry(), and smaller or equal to the * value of $wgParserCacheExpireTime. - * @return int|mixed|null + * @return int */ public function getCacheExpiry() { global $wgParserCacheExpireTime;