Open mavik opened 2 years ago
Maybe you should create a Value Object AppointmentDuration and use it as a type for Appointment::appointmentLengthInMinutes (I'd rename it to appointmentDuration) and in this class verify duration of an appointment.
Maybe you should create a Value Object AppointmentDuration and use it as a type for Appointment::appointmentLengthInMinutes (I'd rename it to appointmentDuration) and in this class verify duration of an appointment.