/** * save License * @param EmployeeLicense $empLicense * @returns EmployeeLicense */ public function saveEmployeeLicense(EmployeeLicense $empLicense) { try { $empLicense->save(); return $empLicense; // @codeCoverageIgnoreStart } catch (Exception $e) { throw new DaoException($e->getMessage(), $e->getCode(), $e); } // @codeCoverageIgnoreEnd }
/** * save License * @param EmployeeLicense $empLicense * @returns boolean */ public function saveLicense(EmployeeLicense $empLicense) { try { $empLicense->save(); return true; } catch (Exception $e) { throw new DaoException($e->getMessage()); } }