public function addExcludeDay($day) { if (!is_int($day) || $day < 1 || $day > 31) { throw new \DomainException("You must describe days of the month using integers between 1 and 31"); } else { parent::addExcludeDay($day); } }
public function addExcludeDay($day) { if (!is_int($day) || $day < 0 || $day > 6) { throw new \DomainException("You must describe days of the week using integers between 0 and 6"); } else { parent::addExcludeDay($day); } }