Update some documentation in CacheTime and ParserCache
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sat, 16 Nov 2013 21:11:49 +0000 (22:11 +0100)
committerIAlex <codereview@emsenhuber.ch>
Sun, 17 Nov 2013 20:25:37 +0000 (20:25 +0000)
Change-Id: I31be0d4639f2a7189e15b622b34595564fad2a3d

includes/parser/CacheTime.php
includes/parser/ParserCache.php

index 8190a8a..a4203b0 100644 (file)
  * @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.
index 7053f13..7043b4a 100644 (file)
@@ -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();