| Total Complexity | 7 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 88.24% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class User implements UserInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @Id |
||
| 15 | * @Column(type="integer") |
||
| 16 | * @GeneratedValue |
||
| 17 | */ |
||
| 18 | private int $id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @Column(type="string") |
||
| 22 | */ |
||
| 23 | private string $name = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Column(type="string", options={"default" : "en"}) |
||
| 27 | */ |
||
| 28 | private string $language = 'en'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Column(type="string") |
||
| 32 | */ |
||
| 33 | private string $password = ''; |
||
| 34 | |||
| 35 | public function getId(): int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | 1 | public function getName(): string |
|
| 41 | { |
||
| 42 | 1 | return $this->name; |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | public function setName(string $name): UserInterface |
|
| 46 | { |
||
| 47 | 1 | $this->name = $name; |
|
| 48 | 1 | return $this; |
|
| 49 | } |
||
| 50 | |||
| 51 | 1 | public function getPassword(): string |
|
| 52 | { |
||
| 53 | 1 | return $this->password; |
|
| 54 | } |
||
| 55 | |||
| 56 | 1 | public function setPassword(string $password): UserInterface |
|
| 57 | { |
||
| 58 | 1 | $this->password = $password; |
|
| 59 | 1 | return $this; |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Returns the language iso2 code |
||
| 64 | */ |
||
| 65 | 1 | public function getLanguage(): string |
|
| 68 | } |
||
| 69 | |||
| 70 | 1 | public function setLanguage(string $language): UserInterface |
|
| 71 | { |
||
| 72 | 1 | $this->language = $language; |
|
| 73 | 1 | return $this; |
|
| 76 |