コード例 #1
0
 private function entrySeasonTypeHandle(MotivationEntry $t)
 {
     if ($t == null) {
         throw new Exceptions\NullPointerException("Argument MotivationTax cannot be null");
     }
     try {
         $season = $this->getMixId($t->getSeason());
         $sportGroup = $this->seasonService->getSeason($season, false);
         $t->setSeason($sportGroup);
         return $t;
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
 }