Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-01-12-16-09-32
[civicrm-core.git] / CRM / Utils / Cache / NoCache.php
index cf700d73803518578cdebf83a8d2f35d30b83a87..0d8906069abc1ed314e9523b6381736d49b74bab 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -32,7 +32,6 @@
  * $Id$
  *
  */
-
 class CRM_Utils_Cache_NoCache implements CRM_Utils_Cache_Interface {
 
   /**
@@ -47,27 +46,46 @@ class CRM_Utils_Cache_NoCache implements CRM_Utils_Cache_Interface {
   /**
    * Constructor
    *
-   * @param array $config an array of configuration params
+   * @param array $config
+   *   An array of configuration params.
    *
    * @return \CRM_Utils_Cache_NoCache
    */
-  function __construct($config) {
+  public function __construct($config) {
   }
 
-  function set($key, &$value) {
+  /**
+   * @param string $key
+   * @param mixed $value
+   *
+   * @return bool
+   */
+  public function set($key, &$value) {
     return FALSE;
   }
 
-  function get($key) {
+  /**
+   * @param string $key
+   *
+   * @return null
+   */
+  public function get($key) {
     return NULL;
   }
 
-  function delete($key) {
+  /**
+   * @param string $key
+   *
+   * @return bool
+   */
+  public function delete($key) {
     return FALSE;
   }
 
-  function flush() {
+  /**
+   * @return bool
+   */
+  public function flush() {
     return FALSE;
   }
 }
-