-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeCard.java
More file actions
23 lines (19 loc) · 766 Bytes
/
TimeCard.java
File metadata and controls
23 lines (19 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package TaskManagerProject;
import java.time.LocalDateTime;
import java.util.UUID;
class TimeCard {
private UUID cardId;
private Employee employee;
private LocalDateTime checkInTime;
private LocalDateTime checkOutTime;
public TimeCard(Employee employee) {
this.cardId = UUID.randomUUID();
this.employee = employee;
this.checkInTime = LocalDateTime.now();
}
public UUID getCardId() { return cardId; }
public Employee getEmployee() { return employee; }
public LocalDateTime getCheckInTime() { return checkInTime; }
public LocalDateTime getCheckOutTime() { return checkOutTime; }
public void setCheckOutTime(LocalDateTime checkOutTime) { this.checkOutTime = checkOutTime; }
}