Some 'final' more, some 'final' less. ;-)
authorRoland Haeder <roland@mxchange.org>
Mon, 19 May 2014 18:57:05 +0000 (20:57 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 19 May 2014 18:57:05 +0000 (20:57 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/stacker/class_BaseStacker.php
inc/classes/main/stacker/file/class_BaseFileStack.php

index 0f4ba20fb4d153da4330b91f71d6d781c2d6b719..f9dc7b6ad5f1bd95cef374d7bd37d008ba57ed2d 100644 (file)
@@ -92,7 +92,7 @@ class BaseStacker extends BaseFrameworkSystem {
         * @return      $isFull                 Whether the stack is full
         * @throws      NoStackerException      If given stack is missing
         */
-       protected final function isStackFull ($stackerName) {
+       protected function isStackFull ($stackerName) {
                // Is the stack not yet initialized?
                if (!$this->isStackInitialized($stackerName)) {
                        // Throw an exception
@@ -113,7 +113,7 @@ class BaseStacker extends BaseFrameworkSystem {
         * @return      $isEmpty                        Whether the stack is empty
         * @throws      NoStackerException      If given stack is missing
         */
-       public final function isStackEmpty ($stackerName) {
+       public function isStackEmpty ($stackerName) {
                // Is the stack not yet initialized?
                if (!$this->isStackInitialized($stackerName)) {
                        // Throw an exception
index 879f19d0187b09700380ccd3bdf086dbcc883b4a..8d5fe13b90a4c7a246415501cd0cf41d12fe0a12 100644 (file)
@@ -103,7 +103,7 @@ class BaseFileStack extends BaseStacker {
         *
         * @return      $totalEntries   Total entries in this stack
         */
-       private function getCounter () {
+       private final function getCounter () {
                // Get it
                return $this->totalEntries;
        }
@@ -113,7 +113,7 @@ class BaseFileStack extends BaseStacker {
         *
         * @return      void
         */
-       private function incrementCounter () {
+       private final function incrementCounter () {
                // Get it
                $this->totalEntries++;
        }
@@ -123,7 +123,7 @@ class BaseFileStack extends BaseStacker {
         *
         * @return      $seekPosition   Current seek position (stored here in object)
         */
-       private function getSeekPosition () {
+       private final function getSeekPosition () {
                // Get it
                return $this->seekPosition;
        }
@@ -134,7 +134,7 @@ class BaseFileStack extends BaseStacker {
         * @param       $seekPosition   Current seek position (stored here in object)
         * @return      void
         */
-       private function setSeekPosition ($seekPosition) {
+       private final function setSeekPosition ($seekPosition) {
                // And set it
                $this->seekPosition = $seekPosition;
        }
@@ -524,7 +524,7 @@ class BaseFileStack extends BaseStacker {
         * @param       $stackerName    Name of the stack
         * @return      $isFull                 Whether the stack is full
         */
-       protected final function isStackFull ($stackerName) {
+       protected function isStackFull ($stackerName) {
                // File-based stacks will only run full if the disk space is low.
                // @TODO Please implement this, returning FALSE
                $isFull = FALSE;
@@ -540,7 +540,7 @@ class BaseFileStack extends BaseStacker {
         * @return      $isEmpty                        Whether the stack is empty
         * @throws      NoStackerException      If given stack is missing
         */
-       public final function isStackEmpty ($stackerName) {
+       public function isStackEmpty ($stackerName) {
                // So, is the stack empty?
                $isEmpty = (($this->getStackCount($stackerName)) == 0);