|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Request; |
|
4
|
|
|
|
|
5
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
6
|
|
|
|
|
7
|
|
|
class ActiveDirectoryUserRequest { |
|
8
|
|
|
|
|
9
|
|
|
#[Assert\NotBlank] |
|
10
|
|
|
#[Assert\Uuid] |
|
11
|
|
|
private string $objectGuid; |
|
12
|
|
|
|
|
13
|
|
|
#[Assert\NotBlank] |
|
14
|
|
|
private string $samAccountName; |
|
15
|
|
|
|
|
16
|
|
|
#[Assert\NotBlank] |
|
17
|
|
|
private string $userPrincipalName; |
|
18
|
|
|
|
|
19
|
|
|
#[Assert\NotBlank] |
|
20
|
|
|
private string $firstname; |
|
21
|
|
|
|
|
22
|
|
|
#[Assert\NotBlank] |
|
23
|
|
|
private string $lastname; |
|
24
|
|
|
|
|
25
|
|
|
#[Assert\Email] |
|
26
|
|
|
#[Assert\NotBlank] |
|
27
|
|
|
private string $email; |
|
28
|
|
|
|
|
29
|
|
|
#[Assert\NotBlank] |
|
30
|
|
|
private string $ou; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* @var string[] |
|
34
|
|
|
*/ |
|
35
|
|
|
private array $groups; |
|
36
|
|
|
|
|
37
|
|
|
public function getObjectGuid(): ?string { |
|
38
|
|
|
return $this->objectGuid; |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
public function getSamAccountName(): ?string { |
|
42
|
|
|
return $this->samAccountName; |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
public function getUserPrincipalName(): ?string { |
|
46
|
|
|
return $this->userPrincipalName; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
public function getFirstname(): ?string { |
|
50
|
|
|
return $this->firstname; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
public function getLastname(): ?string { |
|
54
|
|
|
return $this->lastname; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
public function getEmail(): ?string { |
|
58
|
|
|
return $this->email; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
public function getOu(): ?string { |
|
62
|
|
|
return $this->ou; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
/** |
|
66
|
|
|
* @return string[] |
|
67
|
|
|
*/ |
|
68
|
|
|
public function getGroups(): array { |
|
69
|
|
|
return $this->groups; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* @param string $objectGuid |
|
74
|
|
|
*/ |
|
75
|
|
|
public function setObjectGuid(string $objectGuid): void { |
|
76
|
|
|
$this->objectGuid = $objectGuid; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @param string $samAccountName |
|
81
|
|
|
*/ |
|
82
|
|
|
public function setSamAccountName(string $samAccountName): void { |
|
83
|
|
|
$this->samAccountName = $samAccountName; |
|
84
|
|
|
} |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* @param string $userPrincipalName |
|
88
|
|
|
*/ |
|
89
|
|
|
public function setUserPrincipalName(string $userPrincipalName): void { |
|
90
|
|
|
$this->userPrincipalName = $userPrincipalName; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
/** |
|
94
|
|
|
* @param string $firstname |
|
95
|
|
|
*/ |
|
96
|
|
|
public function setFirstname(string $firstname): void { |
|
97
|
|
|
$this->firstname = $firstname; |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
/** |
|
101
|
|
|
* @param string $lastname |
|
102
|
|
|
*/ |
|
103
|
|
|
public function setLastname(string $lastname): void { |
|
104
|
|
|
$this->lastname = $lastname; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
|
|
* @param string $email |
|
109
|
|
|
*/ |
|
110
|
|
|
public function setEmail(string $email): void { |
|
111
|
|
|
$this->email = $email; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* @param string $ou |
|
116
|
|
|
*/ |
|
117
|
|
|
public function setOu(string $ou): void { |
|
118
|
|
|
$this->ou = $ou; |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
/** |
|
122
|
|
|
* @param array $groups |
|
123
|
|
|
*/ |
|
124
|
|
|
public function setGroups(array $groups): void { |
|
125
|
|
|
$this->groups = $groups; |
|
126
|
|
|
} |
|
127
|
|
|
} |