]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/actions/class_BaseAction.php
Continued:
[core.git] / framework / main / classes / actions / class_BaseAction.php
index aef62776d2084f1241fa911e4d0bd38abcfe74aa..8b0a2c20982ddc35913182d087971a6221c42601 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Action;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Resolver\Resolver;
 
 /**
  * A general action class. You shall extend this class if you are going to write
@@ -30,6 +31,11 @@ use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseAction extends BaseFrameworkSystem {
+       /**
+        * Resolver instance
+        */
+       private $resolverInstance = NULL;
+
        /**
         * Protected constructor
         *
@@ -41,4 +47,23 @@ abstract class BaseAction extends BaseFrameworkSystem {
                parent::__construct($className);
        }
 
+       /**
+        * Setter for resolver instance
+        *
+        * @param       $resolverInstance       Instance of a command resolver class
+        * @return      void
+        */
+       protected final function setResolverInstance (Resolver $resolverInstance) {
+               $this->resolverInstance = $resolverInstance;
+       }
+
+       /**
+        * Getter for resolver instance
+        *
+        * @return      $resolverInstance       Instance of a command resolver class
+        */
+       protected final function getResolverInstance () {
+               return $this->resolverInstance;
+       }
+
 }