| Total Complexity | 8 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | #[ORM\Entity] |
||
| 10 | class ActiveDirectoryUser extends User { |
||
| 11 | |||
| 12 | #[Serializer\Exclude] |
||
| 13 | #[ORM\Column(type: 'string')] |
||
| 14 | private ?string $userPrincipalName = null; |
||
| 15 | |||
| 16 | #[Serializer\Exclude] |
||
| 17 | #[ORM\Column(type: 'uuid', unique: true)] |
||
| 18 | private ?UuidInterface $objectGuid = null; |
||
| 19 | |||
| 20 | #[Serializer\Exclude] |
||
| 21 | #[ORM\Column(type: 'string')] |
||
| 22 | private ?string $ou = null; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string[] |
||
| 26 | */ |
||
| 27 | #[Serializer\Exclude] |
||
| 28 | #[ORM\Column(type: 'json')] |
||
| 29 | private array $groups = [ ]; |
||
| 30 | |||
| 31 | public function getUserPrincipalName(): string { |
||
| 32 | return $this->userPrincipalName; |
||
|
|
|||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return ActiveDirectoryUser |
||
| 37 | */ |
||
| 38 | public function setUserPrincipalName(string $userPrincipalName) { |
||
| 39 | $this->userPrincipalName = $userPrincipalName; |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getObjectGuid(): UuidInterface { |
||
| 44 | return $this->objectGuid; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function setObjectGuid(UuidInterface $objectGuid): ActiveDirectoryUser { |
||
| 48 | $this->objectGuid = $objectGuid; |
||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getOu(): string { |
||
| 53 | return $this->ou; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function setOu(string $ou): ActiveDirectoryUser { |
||
| 57 | $this->ou = $ou; |
||
| 58 | return $this; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string[] |
||
| 63 | */ |
||
| 64 | public function getGroups(): array { |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string[] $groups |
||
| 70 | */ |
||
| 71 | public function setGroups(array $groups): ActiveDirectoryUser { |
||
| 74 | } |
||
| 75 | } |