-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPassenger.java
89 lines (73 loc) · 2.14 KB
/
Passenger.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import java.time.LocalDate;
import java.io.Serializable;
public class Passenger implements Serializable{
private String name;
private String firstName;
private LocalDate dateOfBirth;
private String passportNumber;
private String phoneNumber;
private String address;
private String seatNumber;
public Passenger(String name, String firstName, LocalDate dateOfBirth, String passportNumber, String phoneNumber) {
this.name = name;
this.firstName = firstName;
this.dateOfBirth = dateOfBirth;
this.passportNumber = passportNumber;
this.phoneNumber = phoneNumber;
}
// Getter for name
public String getName() {
return this.name;
}
// Setter for name
public void setName(String name) {
this.name = name;
}
// Getter for firstName
public String getFirstName() {
return this.firstName;
}
// Setter for firstName
public void setFirstName(String firstName) {
this.firstName = firstName;
}
// Getter for dateOfBirth
public LocalDate getDateOfBirth() {
return this.dateOfBirth;
}
// Setter for dateOfBirth
public void setDateOfBirth(LocalDate dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
// Getter for passportNumber
public String getPassportNumber() {
return this.passportNumber;
}
// Setter for passportNumber
public void setPassportNumber(String passportNumber) {
this.passportNumber = passportNumber;
}
// Getter for phoneNumber
public String getPhoneNumber() {
return this.phoneNumber;
}
// Setter for phoneNumber
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getAddress() {
return this.address;
}
// Setter for address
public void setAddress(String address) {
this.address = address;
}
// Getter for seatNumber
public String getSeatNumber() {
return this.seatNumber;
}
// Setter for seatNumber
public void setSeatNumber(String seatNumber) {
this.seatNumber = seatNumber;
}
}