Total Complexity | 7 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | #[ORM\Entity(repositoryClass: UserAuthSourceRepository::class)] |
||
14 | class UserAuthSource |
||
15 | { |
||
16 | public const PLATFORM = 'platform'; |
||
17 | public const CAS = 'cas'; |
||
18 | public const LDAP = 'extldap'; |
||
19 | |||
20 | |||
21 | #[ORM\Id] |
||
22 | #[ORM\GeneratedValue] |
||
23 | #[ORM\Column] |
||
24 | private ?int $id = null; |
||
25 | |||
26 | #[ORM\Column(length: 255)] |
||
27 | private ?string $authentication = null; |
||
28 | |||
29 | #[ORM\ManyToOne] |
||
30 | #[ORM\JoinColumn(nullable: false)] |
||
31 | private ?AccessUrl $url = null; |
||
32 | |||
33 | #[ORM\ManyToOne(inversedBy: 'authSources')] |
||
34 | #[ORM\JoinColumn(nullable: false)] |
||
35 | private ?User $user = null; |
||
36 | |||
37 | public function getId(): ?int |
||
40 | } |
||
41 | |||
42 | public function getAuthentication(): ?string |
||
43 | { |
||
44 | return $this->authentication; |
||
45 | } |
||
46 | |||
47 | public function setAuthentication(string $authentication): static |
||
48 | { |
||
49 | $this->authentication = $authentication; |
||
50 | |||
51 | return $this; |
||
52 | } |
||
53 | |||
54 | public function getUrl(): ?AccessUrl |
||
55 | { |
||
56 | return $this->url; |
||
57 | } |
||
58 | |||
59 | public function setUrl(?AccessUrl $url): static |
||
64 | } |
||
65 | |||
66 | public function getUser(): ?User |
||
67 | { |
||
69 | } |
||
70 | |||
71 | public function setUser(?User $user): static |
||
78 |