private function paymentSeasonTypeHandle(Payment $p) { if ($p === NULL) { throw new Exceptions\NullPointerException("Argument Payment was null.", 0); } try { $sId = $this->getMixId($p->getSeason()); if ($this->getSeasonService() !== null && $sId !== null) { $season = $this->getSeasonService()->getSeason($sId, false); $p->setSeason($season); } } catch (\Exception $ex) { $this->logError($ex->getMessage()); throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious()); } return $p; }