*/
/**
- * Class CRM_Utils_Cache_Arraycache
+ * Class CRM_Utils_Cache_ArrayCache
*/
-class CRM_Utils_Cache_Arraycache implements CRM_Utils_Cache_Interface {
+class CRM_Utils_Cache_ArrayCache implements CRM_Utils_Cache_Interface {
use CRM_Utils_Cache_NaiveMultipleTrait;
- use CRM_Utils_Cache_NaiveHasTrait; // TODO Native implementation
+ // TODO Native implementation
+ use CRM_Utils_Cache_NaiveHasTrait;
const DEFAULT_TIMEOUT = 3600;
/**
* The cache storage container, an in memory array by default
+ * @var array
*/
protected $_cache;
* @param array $config
* An array of configuration params.
*
- * @return \CRM_Utils_Cache_Arraycache
+ * @return \CRM_Utils_Cache_ArrayCache
*/
public function __construct($config) {
- $this->_cache = array();
- $this->_expires = array();
+ $this->_cache = [];
+ $this->_expires = [];
}
/**
public function flush() {
unset($this->_cache);
unset($this->_expires);
- $this->_cache = array();
+ $this->_cache = [];
return TRUE;
}