Continued:
[core.git] / framework / main / classes / cache / class_MemoryCache.php
index f3140497b0e7a821f8ac62e959867b0444b2cb1e..2294ba7e726203a33a24fd72b977a952c583b56f 100644 (file)
@@ -12,7 +12,7 @@ use Org\Mxchange\CoreFramework\ObjectArray\FrameworkArrayObject;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  * @todo               Rename to InProgressCache
@@ -41,7 +41,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
         *
         * @return      void
         */
-       protected function __construct () {
+       private function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
        }
@@ -97,7 +97,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
                                // Not found
                                $exists = false;
                        }
-               } // END - if
+               }
 
                // Return status
                return $exists;
@@ -128,7 +128,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
                if ($this->offsetExists($offset)) {
                        // Then get the data from it
                        $data = $this->dataCache->offsetGet($offset);
-               } // END - if
+               }
 
                // Return data
                return $data;
@@ -146,7 +146,7 @@ class MemoryCache extends BaseFrameworkSystem implements Cacheable {
                        // Purge only existing keys
                        //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CACHE: Unsetting cache ' . $offset);
                        $this->dataCache->offsetUnset($offset);
-               } // END - if
+               }
        }
 
 }