public function creating($task)
 {
     // check if getTestRDBMS is set for testing the Database triggers.
     if (appGlobals::getTestRDBMS()) {
         return true;
     }
     if ($task->checkIfTimeOverLaps($task->time_card_hours_worked_id, $task->start_time, $task->end_time)) {
         session()->flash(appGlobals::getInfoMessageType(), appGlobals::getInfoMessageText(appGlobals::INFO_TIME_VALUE_OVERLAP));
         return false;
     }
 }
 /**
  * @param $timeCardRange
  * @param $timeCardRequestAttributes
  */
 private function createTimeCardData($timeCardRange, $timeCardRequestAttributes)
 {
     // check if getTestRDBMS is set for testing the Database triggers.
     if (appGlobals::getTestRDBMS()) {
         $this->createTimeCardDataTransaction($timeCardRange, $timeCardRequestAttributes);
     } else {
         try {
             $this->createTimeCardDataTransaction($timeCardRange, $timeCardRequestAttributes);
         } catch (\Exception $e) {
             $this->timeOverlapError(appGlobals::INFO_TIME_VALUE_OVERLAP);
         }
     }
 }