@@ -39,6 +39,12 @@ class AdminLogin extends AbstractEntity
3939 #[ORM \Column(name: 'deviceType ' , type: 'string ' , length: 191 , nullable: true )]
4040 protected ?string $ deviceType = null ;
4141
42+ #[ORM \Column(name: 'deviceBrand ' , type: 'string ' , length: 191 , nullable: true )]
43+ protected ?string $ deviceBrand = null ;
44+
45+ #[ORM \Column(name: 'deviceModel ' , type: 'string ' , length: 40 , nullable: true )]
46+ protected ?string $ deviceModel = null ;
47+
4248 #[ORM \Column(type: 'yes_no_enum ' , nullable: true , enumType: YesNoEnum::class)]
4349 protected YesNoEnum $ isMobile = YesNoEnum::No;
4450
@@ -48,14 +54,20 @@ class AdminLogin extends AbstractEntity
4854 #[ORM \Column(name: 'osVersion ' , type: 'string ' , length: 191 , nullable: true )]
4955 protected ?string $ osVersion = null ;
5056
57+ #[ORM \Column(name: 'osPlatform ' , type: 'string ' , length: 191 , nullable: true )]
58+ protected ?string $ osPlatform = null ;
59+
5160 #[ORM \Column(name: 'clientType ' , type: 'string ' , length: 191 , nullable: true )]
5261 protected ?string $ clientType = null ;
5362
5463 #[ORM \Column(name: 'clientName ' , type: 'string ' , length: 191 , nullable: true )]
5564 protected ?string $ clientName = null ;
5665
57- #[ORM \Column(type: 'yes_no_enum ' , nullable: true , enumType: YesNoEnum::class)]
58- protected YesNoEnum $ isCrawler = YesNoEnum::No;
66+ #[ORM \Column(name: 'clientEngine ' , type: 'string ' , length: 191 , nullable: true )]
67+ protected ?string $ clientEngine = null ;
68+
69+ #[ORM \Column(name: 'clientVersion ' , type: 'string ' , length: 191 , nullable: true )]
70+ protected ?string $ clientVersion = null ;
5971
6072 #[ORM \Column(type: 'success_failure_enum ' , nullable: true , enumType: SuccessFailureEnum::class)]
6173 protected SuccessFailureEnum $ loginStatus = SuccessFailureEnum::Fail;
@@ -132,6 +144,30 @@ public function setDeviceType(?string $deviceType): self
132144 return $ this ;
133145 }
134146
147+ public function getDeviceBrand (): ?string
148+ {
149+ return $ this ->deviceBrand ;
150+ }
151+
152+ public function setDeviceBrand (?string $ deviceBrand ): self
153+ {
154+ $ this ->deviceBrand = $ deviceBrand ;
155+
156+ return $ this ;
157+ }
158+
159+ public function getDeviceModel (): ?string
160+ {
161+ return $ this ->deviceModel ;
162+ }
163+
164+ public function setDeviceModel (?string $ deviceModel ): self
165+ {
166+ $ this ->deviceModel = $ deviceModel ;
167+
168+ return $ this ;
169+ }
170+
135171 public function getIsMobile (): ?YesNoEnum
136172 {
137173 return $ this ->isMobile ;
@@ -168,6 +204,18 @@ public function setOsVersion(?string $osVersion): self
168204 return $ this ;
169205 }
170206
207+ public function getOsPlatform (): ?string
208+ {
209+ return $ this ->osPlatform ;
210+ }
211+
212+ public function setOsPlatform (?string $ osPlatform ): self
213+ {
214+ $ this ->osPlatform = $ osPlatform ;
215+
216+ return $ this ;
217+ }
218+
171219 public function getClientType (): ?string
172220 {
173221 return $ this ->clientType ;
@@ -192,14 +240,26 @@ public function setClientName(?string $clientName): self
192240 return $ this ;
193241 }
194242
195- public function getIsCrawler (): ?YesNoEnum
243+ public function getClientEngine (): ?string
244+ {
245+ return $ this ->clientEngine ;
246+ }
247+
248+ public function setClientEngine (?string $ clientEngine ): self
249+ {
250+ $ this ->clientEngine = $ clientEngine ;
251+
252+ return $ this ;
253+ }
254+
255+ public function getClientVersion (): ?string
196256 {
197- return $ this ->isCrawler ;
257+ return $ this ->clientVersion ;
198258 }
199259
200- public function setIsCrawler ( YesNoEnum $ isCrawler ): self
260+ public function setClientVersion (? string $ clientVersion ): self
201261 {
202- $ this ->isCrawler = $ isCrawler ;
262+ $ this ->clientVersion = $ clientVersion ;
203263
204264 return $ this ;
205265 }
@@ -225,12 +285,16 @@ public function setLoginStatus(SuccessFailureEnum $loginStatus): self
225285 * continent: string|null,
226286 * organization: string|null,
227287 * deviceType: string|null,
228- * isMobile: 'no'|'yes',
288+ * deviceBrand: string|null,
289+ * deviceModel: string|null,
290+ * isMobile: string,
229291 * osName: string|null,
230292 * osVersion: string|null,
293+ * osPlatform: string|null,
231294 * clientType: string|null,
232295 * clientName: string|null,
233- * isCrawler: 'no'|'yes',
296+ * clientEngine: string|null,
297+ * clientVersion: string|null,
234298 * loginStatus: string,
235299 * created: DateTimeImmutable|null,
236300 * updated: DateTimeImmutable|null,
@@ -239,22 +303,26 @@ public function setLoginStatus(SuccessFailureEnum $loginStatus): self
239303 public function getArrayCopy (): array
240304 {
241305 return [
242- 'id ' => $ this ->id ->toString (),
243- 'identity ' => $ this ->identity ,
244- 'adminIp ' => $ this ->adminIp ,
245- 'country ' => $ this ->country ,
246- 'continent ' => $ this ->continent ,
247- 'organization ' => $ this ->organization ,
248- 'deviceType ' => $ this ->deviceType ,
249- 'isMobile ' => $ this ->isMobile ->value ,
250- 'osName ' => $ this ->osName ,
251- 'osVersion ' => $ this ->osVersion ,
252- 'clientType ' => $ this ->clientType ,
253- 'clientName ' => $ this ->clientName ,
254- 'isCrawler ' => $ this ->isCrawler ->value ,
255- 'loginStatus ' => $ this ->loginStatus ->value ,
256- 'created ' => $ this ->created ,
257- 'updated ' => $ this ->updated ,
306+ 'id ' => $ this ->id ->toString (),
307+ 'identity ' => $ this ->identity ,
308+ 'adminIp ' => $ this ->adminIp ,
309+ 'country ' => $ this ->country ,
310+ 'continent ' => $ this ->continent ,
311+ 'organization ' => $ this ->organization ,
312+ 'deviceType ' => $ this ->deviceType ,
313+ 'deviceBrand ' => $ this ->deviceBrand ,
314+ 'deviceModel ' => $ this ->deviceModel ,
315+ 'isMobile ' => $ this ->isMobile ->value ,
316+ 'osName ' => $ this ->osName ,
317+ 'osVersion ' => $ this ->osVersion ,
318+ 'osPlatform ' => $ this ->osPlatform ,
319+ 'clientType ' => $ this ->clientType ,
320+ 'clientName ' => $ this ->clientName ,
321+ 'clientEngine ' => $ this ->clientEngine ,
322+ 'clientVersion ' => $ this ->clientVersion ,
323+ 'loginStatus ' => $ this ->loginStatus ->value ,
324+ 'created ' => $ this ->created ,
325+ 'updated ' => $ this ->updated ,
258326 ];
259327 }
260328}
0 commit comments