easytests.core.entities.UserEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
c 1
b 0
f 0
loc 27
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A map(UserModelInterface) 0 9 1
1
package easytests.core.entities;
2
3
import easytests.core.models.UserModelInterface;
4
import lombok.*;
5
6
/**
7
 * @author malinink
8
 */
9
@Data
10
public class UserEntity {
11
    private Integer id;
12
13
    private String firstName;
14
15
    private String lastName;
16
17
    private String surname;
18
19
    private String email;
20
21
    private String password;
22
23
    private Boolean isAdmin;
24
25
    private Integer state;
26
27
    public void map(UserModelInterface userModel) {
28
        this.setId(userModel.getId());
29
        this.setFirstName(userModel.getFirstName());
30
        this.setLastName(userModel.getLastName());
31
        this.setSurname(userModel.getSurname());
32
        this.setEmail(userModel.getEmail());
33
        this.setPassword(userModel.getPassword());
34
        this.setIsAdmin(userModel.getIsAdmin());
35
        this.setState(userModel.getState());
36
    }
37
}
38