From 3f968db2cce50c43a976c44728c9c0d2adf1fead Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 16 Nov 2013 22:11:49 +0100 Subject: [PATCH] Update some documentation in CacheTime and ParserCache Change-Id: I31be0d4639f2a7189e15b622b34595564fad2a3d --- includes/parser/CacheTime.php | 4 ++++ includes/parser/ParserCache.php | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/parser/CacheTime.php b/includes/parser/CacheTime.php index 8190a8a09a..a4203b0894 100644 --- a/includes/parser/CacheTime.php +++ b/includes/parser/CacheTime.php @@ -27,6 +27,10 @@ * @ingroup Parser */ class CacheTime { + /** @var array|bool ParserOptions which have been taken into account to + * produce output or false if not available. + */ + public $mUsedOptions; var $mVersion = Parser::VERSION, # Compatibility check $mCacheTime = '', # Time when this object was generated, or -1 for uncacheable. Used in ParserCache. diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index 7053f134c6..7043b4a960 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -220,10 +220,10 @@ class ParserCache { } /** - * @param $parserOutput ParserOutput - * @param $article Article - * @param $popts ParserOptions - * @param $cacheTime Time when the cache was generated + * @param ParserOutput $parserOutput + * @param Article $article + * @param ParserOptions $popts + * @param string $cacheTime Time when the cache was generated */ public function save( $parserOutput, $article, $popts, $cacheTime = null ) { $expire = $parserOutput->getCacheExpiry(); -- 2.20.1