Skip to content

Commit c8ff013

Browse files
committed
refactor(ReservationRequest): [9단계] 시간 타입 String 에서 객체로 변경
1 parent a3c0efa commit c8ff013

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/roomescape/model/reservation/ReservationRequest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package roomescape.model.reservation;
22

3+
import roomescape.model.time.Time;
4+
35
public class ReservationRequest {
46
private String name;
57
private String date;
6-
private String time;
8+
private Time time;
79

8-
public ReservationRequest(String name, String date, String time) {
10+
public ReservationRequest(String name, String date, Time time) {
911
this.name = name;
1012
this.date = date;
1113
this.time = time;
@@ -19,7 +21,7 @@ public String getDate() {
1921
return date;
2022
}
2123

22-
public String getTime() {
24+
public Time getTime() {
2325
return time;
2426
}
2527
}

0 commit comments

Comments
 (0)