X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FCacheDependency.php;h=7b83990fedc9e0e2ec1e42db3d6106c01c02c0ca;hb=6125d3fbf7bb046d2765d3ef058ea984871ca36c;hp=28889b50c72dc4b8269e5b08d51fa090e6f364ec;hpb=11cb289cfc45fd40056bccae208934b11c98c10e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/CacheDependency.php b/includes/cache/CacheDependency.php index 28889b50c7..7b83990fed 100644 --- a/includes/cache/CacheDependency.php +++ b/includes/cache/CacheDependency.php @@ -34,7 +34,7 @@ class DependencyWrapper { /** * Create an instance. - * @param $value Mixed: the user-supplied value + * @param mixed $value The user-supplied value * @param CacheDependency|CacheDependency[] $deps A dependency or dependency * array. All dependencies must be objects implementing CacheDependency. */ @@ -75,7 +75,7 @@ class DependencyWrapper { /** * Get the user-defined value - * @return bool|Mixed + * @return bool|mixed */ function getValue() { return $this->value; @@ -84,9 +84,9 @@ class DependencyWrapper { /** * Store the wrapper to a cache * - * @param $cache BagOStuff - * @param $key - * @param $expiry + * @param BagOStuff $cache + * @param string $key + * @param int $expiry */ function storeToCache( $cache, $key, $expiry = 0 ) { $this->initialiseDeps(); @@ -98,12 +98,12 @@ class DependencyWrapper { * it will be generated with the callback function (if present), and the newly * calculated value will be stored to the cache in a wrapper. * - * @param $cache BagOStuff a cache object such as $wgMemc - * @param string $key the cache key - * @param $expiry Integer: the expiry timestamp or interval in seconds - * @param $callback Mixed: the callback for generating the value, or false - * @param array $callbackParams the function parameters for the callback - * @param array $deps the dependencies to store on a cache miss. Note: these + * @param BagOStuff $cache A cache object such as $wgMemc + * @param string $key The cache key + * @param int $expiry The expiry timestamp or interval in seconds + * @param bool|array $callback The callback for generating the value, or false + * @param array $callbackParams The function parameters for the callback + * @param array $deps The dependencies to store on a cache miss. Note: these * are not the dependencies used on a cache hit! Cache hits use the stored * dependency array. * @@ -157,7 +157,7 @@ class FileDependency extends CacheDependency { * Create a file dependency * * @param string $filename the name of the file, preferably fully qualified - * @param $timestamp Mixed: the unix last modified timestamp, or false if the + * @param null|bool|int $timestamp The unix last modified timestamp, or false if the * file does not exist. If omitted, the timestamp will be loaded from * the file. *