| Total Complexity | 7 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 88.24% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | #[ORM\Entity(repositoryClass: UserRepository::class)] |
||
| 12 | #[ORM\Table(name: '`user`')] |
||
| 13 | class User implements UserInterface |
||
| 14 | { |
||
| 15 | #[ORM\Column(type: Types::INTEGER)] |
||
| 16 | #[ORM\Id, ORM\GeneratedValue(strategy: 'AUTO')] |
||
| 17 | private int $id; |
||
| 18 | |||
| 19 | #[ORM\Column(type: Types::STRING)] |
||
| 20 | private string $name = ''; |
||
| 21 | |||
| 22 | #[ORM\Column(type: Types::STRING, options: ['default' => 'en'])] |
||
| 23 | private string $language = 'en'; |
||
| 24 | |||
| 25 | #[ORM\Column(type: Types::STRING)] |
||
| 26 | private string $password = ''; |
||
| 27 | |||
| 28 | public function getId(): int |
||
| 29 | { |
||
| 30 | return $this->id; |
||
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function getName(): string |
|
| 34 | { |
||
| 35 | 1 | return $this->name; |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | public function setName(string $name): UserInterface |
|
| 39 | { |
||
| 40 | 1 | $this->name = $name; |
|
| 41 | 1 | return $this; |
|
| 42 | } |
||
| 43 | |||
| 44 | 1 | public function getPassword(): string |
|
| 45 | { |
||
| 46 | 1 | return $this->password; |
|
| 47 | } |
||
| 48 | |||
| 49 | 1 | public function setPassword(string $password): UserInterface |
|
| 50 | { |
||
| 51 | 1 | $this->password = $password; |
|
| 52 | 1 | return $this; |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Returns the language iso2 code |
||
| 57 | */ |
||
| 58 | 1 | public function getLanguage(): string |
|
| 61 | } |
||
| 62 | |||
| 63 | 1 | public function setLanguage(string $language): UserInterface |
|
| 64 | { |
||
| 65 | 1 | $this->language = $language; |
|
| 66 | 1 | return $this; |
|
| 69 |