@@ -39,12 +39,6 @@ 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-
4842 #[ORM \Column(type: 'yes_no_enum ' , nullable: true , enumType: YesNoEnum::class)]
4943 protected YesNoEnum $ isMobile = YesNoEnum::No;
5044
@@ -54,20 +48,14 @@ class AdminLogin extends AbstractEntity
5448 #[ORM \Column(name: 'osVersion ' , type: 'string ' , length: 191 , nullable: true )]
5549 protected ?string $ osVersion = null ;
5650
57- #[ORM \Column(name: 'osPlatform ' , type: 'string ' , length: 191 , nullable: true )]
58- protected ?string $ osPlatform = null ;
59-
6051 #[ORM \Column(name: 'clientType ' , type: 'string ' , length: 191 , nullable: true )]
6152 protected ?string $ clientType = null ;
6253
6354 #[ORM \Column(name: 'clientName ' , type: 'string ' , length: 191 , nullable: true )]
6455 protected ?string $ clientName = null ;
6556
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 ;
57+ #[ORM \Column(type: 'yes_no_enum ' , nullable: true , enumType: YesNoEnum::class)]
58+ protected YesNoEnum $ isCrawler = YesNoEnum::No;
7159
7260 #[ORM \Column(type: 'success_failure_enum ' , nullable: true , enumType: SuccessFailureEnum::class)]
7361 protected SuccessFailureEnum $ loginStatus = SuccessFailureEnum::Fail;
@@ -144,30 +132,6 @@ public function setDeviceType(?string $deviceType): self
144132 return $ this ;
145133 }
146134
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-
171135 public function getIsMobile (): ?YesNoEnum
172136 {
173137 return $ this ->isMobile ;
@@ -204,18 +168,6 @@ public function setOsVersion(?string $osVersion): self
204168 return $ this ;
205169 }
206170
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-
219171 public function getClientType (): ?string
220172 {
221173 return $ this ->clientType ;
@@ -240,26 +192,14 @@ public function setClientName(?string $clientName): self
240192 return $ this ;
241193 }
242194
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
195+ public function getIsCrawler (): ?YesNoEnum
256196 {
257- return $ this ->clientVersion ;
197+ return $ this ->isCrawler ;
258198 }
259199
260- public function setClientVersion (? string $ clientVersion ): self
200+ public function setIsCrawler ( YesNoEnum $ isCrawler ): self
261201 {
262- $ this ->clientVersion = $ clientVersion ;
202+ $ this ->isCrawler = $ isCrawler ;
263203
264204 return $ this ;
265205 }
@@ -285,16 +225,12 @@ public function setLoginStatus(SuccessFailureEnum $loginStatus): self
285225 * continent: string|null,
286226 * organization: string|null,
287227 * deviceType: string|null,
288- * deviceBrand: string|null,
289- * deviceModel: string|null,
290- * isMobile: string,
228+ * isMobile: 'no'|'yes',
291229 * osName: string|null,
292230 * osVersion: string|null,
293- * osPlatform: string|null,
294231 * clientType: string|null,
295232 * clientName: string|null,
296- * clientEngine: string|null,
297- * clientVersion: string|null,
233+ * isCrawler: 'no'|'yes',
298234 * loginStatus: string,
299235 * created: DateTimeImmutable|null,
300236 * updated: DateTimeImmutable|null,
@@ -303,26 +239,22 @@ public function setLoginStatus(SuccessFailureEnum $loginStatus): self
303239 public function getArrayCopy (): array
304240 {
305241 return [
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 ,
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 ,
326258 ];
327259 }
328260}
0 commit comments