1 | <?php |
||
15 | abstract class BaseUser extends AbstractUser |
||
16 | { |
||
17 | /** |
||
18 | * @ORM\Id |
||
19 | * @ORM\Column(type="integer") |
||
20 | * @ORM\GeneratedValue(strategy="AUTO") |
||
21 | */ |
||
22 | protected $id; |
||
23 | |||
24 | /** |
||
25 | * The doctrine metadata is set dynamically in Kunstmaan\AdminBundle\EventListener\MappingListener |
||
26 | */ |
||
27 | protected $groups; |
||
28 | |||
29 | /** |
||
30 | * @ORM\Column(type="string", name="admin_locale", length=5, nullable=true) |
||
31 | */ |
||
32 | protected $adminLocale; |
||
33 | |||
34 | /** |
||
35 | * @ORM\Column(type="boolean", name="password_changed", nullable=true) |
||
36 | */ |
||
37 | protected $passwordChanged; |
||
38 | |||
39 | /** |
||
40 | * @ORM\Column(name="google_id", type="string", length=255, nullable=true) |
||
41 | */ |
||
42 | protected $googleId; |
||
43 | |||
44 | /** |
||
45 | * @var \DateTimeImmutable|null |
||
46 | * @ORM\Column(name="created_at", type="datetime_immutable", nullable=true) |
||
47 | */ |
||
48 | protected $createdAt; |
||
49 | |||
50 | /** |
||
51 | * @var string|null |
||
52 | * @ORM\Column(name="created_by", type="string", nullable=true) |
||
53 | */ |
||
54 | protected $createdBy; |
||
55 | |||
56 | /** |
||
57 | * Construct a new user |
||
58 | */ |
||
59 | 35 | public function __construct() |
|
65 | |||
66 | /** |
||
67 | * Get id |
||
68 | * |
||
69 | * @return int |
||
70 | */ |
||
71 | 3 | public function getId() |
|
75 | |||
76 | /** |
||
77 | * Set id |
||
78 | * |
||
79 | * @param int $id |
||
80 | * |
||
81 | * @return BaseUser |
||
82 | */ |
||
83 | 8 | public function setId($id) |
|
89 | |||
90 | /** |
||
91 | * Gets the groupIds for the user. |
||
92 | * |
||
93 | * @return array |
||
94 | */ |
||
95 | 1 | public function getGroupIds() |
|
109 | |||
110 | /** |
||
111 | * Gets the groups the user belongs to. |
||
112 | * |
||
113 | * @return ArrayCollection |
||
114 | */ |
||
115 | 6 | public function getGroups() |
|
119 | |||
120 | /** |
||
121 | * Get adminLocale |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | 1 | public function getAdminLocale() |
|
129 | |||
130 | /** |
||
131 | * Set adminLocale |
||
132 | * |
||
133 | * @param string $adminLocale |
||
134 | * |
||
135 | * @return BaseUser |
||
136 | */ |
||
137 | 2 | public function setAdminLocale($adminLocale) |
|
143 | |||
144 | /** |
||
145 | * is passwordChanged |
||
146 | * |
||
147 | * @return bool |
||
148 | */ |
||
149 | 1 | public function isPasswordChanged() |
|
153 | |||
154 | /** |
||
155 | * Set passwordChanged |
||
156 | * |
||
157 | * @param bool $passwordChanged |
||
158 | * |
||
159 | * @return User |
||
160 | */ |
||
161 | 2 | public function setPasswordChanged($passwordChanged) |
|
167 | |||
168 | /** |
||
169 | * @return mixed |
||
170 | */ |
||
171 | 1 | public function getGoogleId() |
|
175 | |||
176 | /** |
||
177 | * @param mixed $googleId |
||
178 | */ |
||
179 | 3 | public function setGoogleId($googleId) |
|
183 | |||
184 | /** |
||
185 | * @param ClassMetadata $metadata |
||
186 | */ |
||
187 | 1 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
208 | |||
209 | /** |
||
210 | * Return class name of form type used to add & edit users |
||
211 | * |
||
212 | * @return string |
||
213 | */ |
||
214 | abstract public function getFormTypeClass(); |
||
215 | |||
216 | /** |
||
217 | * {@inheritdoc} |
||
218 | */ |
||
219 | 1 | public function isAccountNonLocked() |
|
223 | |||
224 | public function getCreatedAt(): ?\DateTimeImmutable |
||
228 | |||
229 | public function getCreatedBy(): ?string |
||
233 | |||
234 | public function setCreatedBy(string $createdBy): void |
||
238 | } |
||
239 |