]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/database/class_BaseDatabaseResult.php
Continued:
[core.git] / framework / main / classes / database / class_BaseDatabaseResult.php
index 74b5d22887493e010c5459e903cb1ac002a8ad24..2b30e9e18371e4b40e30935a53e283ac9619fa8f 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Mxchange\CoreFramework\Result\Database;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalUpdateCriteria;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 
 /**
@@ -29,14 +30,38 @@ use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseDatabaseResult extends BaseFrameworkSystem {
+       /**
+        * Update criteria instance
+        */
+       private $updateInstance = NULL;
+
        /**
         * Protected constructor
         *
         * @return      void
         */
-       protected function __construct($class = __CLASS__) {
+       protected function __construct (string $className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
+       }
+
+       /**
+        * Setter for update instance
+        *
+        * @param       $updateInstance         An instance of a LocalUpdateCriteria clase
+        * @return      void
+        */
+       public final function setUpdateInstance (LocalUpdateCriteria $updateInstance) {
+               $this->updateInstance = $updateInstance;
+       }
+
+       /**
+        * Getter for update instance
+        *
+        * @return      $updateInstance         Updateable criteria instance
+        */
+       public final function getUpdateInstance () {
+               return $this->updateInstance;
        }
 
 }