| Total Complexity | 7 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | #[ORM\Entity(repositoryClass: XApiLrsAuthRepository::class)] |
||
| 10 | class XApiLrsAuth |
||
| 11 | { |
||
| 12 | use TimestampableEntity; |
||
| 13 | |||
| 14 | #[ORM\Id] |
||
| 15 | #[ORM\GeneratedValue] |
||
| 16 | #[ORM\Column] |
||
| 17 | private ?int $id = null; |
||
| 18 | |||
| 19 | #[ORM\Column(length: 255)] |
||
| 20 | private ?string $username = null; |
||
| 21 | |||
| 22 | #[ORM\Column(length: 255)] |
||
| 23 | private ?string $password = null; |
||
| 24 | |||
| 25 | #[ORM\Column] |
||
| 26 | private ?bool $enabled = null; |
||
| 27 | |||
| 28 | public function getId(): ?int |
||
| 29 | { |
||
| 30 | return $this->id; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getUsername(): ?string |
||
| 34 | { |
||
| 35 | return $this->username; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setUsername(string $username): static |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getPassword(): ?string |
||
| 46 | { |
||
| 47 | return $this->password; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function setPassword(string $password): static |
||
| 51 | { |
||
| 52 | $this->password = $password; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function isEnabled(): ?bool |
||
| 58 | { |
||
| 59 | return $this->enabled; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function setEnabled(bool $enabled): static |
||
| 67 | } |
||
| 68 | } |
||
| 69 |