}
// Ist the given birthday valid?
- if ($personellInstance->isDateValid($year, $month, $day)) {
- // Set birthday
- $personellInstance->setBirthday($year, $month, $day);
- } else {
+ if (!$personellInstance->isDateValid($year, $month, $day)) {
// Something is wrong ...
throw new BirthdayInvalidException(array($year, $month, $day), self::EXCEPTION_BIRTH_DATE_IS_INVALID);
}
+ // Set birthday
+ $personellInstance->setBirthday($year, $month, $day);
+
// Set as employed/marrital status
$personellInstance->setEmployed(true);
$personellInstance->setMarried($married);