namespace Org\Mxchange\CoreFramework\Result\Database;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalUpdateCriteria;
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;
}
}