@@ -20,7 +20,7 @@ class UserDto implements JsonSerializable
20
20
/**
21
21
* @var string
22
22
*/
23
- protected $ authPassword ;
23
+ protected $ newPassword ;
24
24
25
25
/**
26
26
* @var string
@@ -88,7 +88,7 @@ public function __construct(
88
88
) {
89
89
$ this ->setId ($ id )
90
90
->setEmail ($ email )
91
- ->setAuthPassword ('' )
91
+ ->setNewPassword ('' )
92
92
->setName ($ name )
93
93
->setLocale ($ locale )
94
94
->setTheme ($ theme )
@@ -142,19 +142,19 @@ public function setEmail(string $email): UserDto
142
142
/**
143
143
* @return string
144
144
*/
145
- public function getAuthPassword (): string
145
+ public function getNewPassword (): string
146
146
{
147
- return $ this ->authPassword ;
147
+ return $ this ->newPassword ;
148
148
}
149
149
150
150
/**
151
- * @param string $authPassword
151
+ * @param string $newPassword
152
152
*
153
153
* @return UserDto
154
154
*/
155
- public function setAuthPassword (string $ authPassword ): UserDto
155
+ public function setNewPassword (string $ newPassword ): UserDto
156
156
{
157
- $ this ->authPassword = $ authPassword ;
157
+ $ this ->newPassword = $ newPassword ;
158
158
159
159
return $ this ;
160
160
}
@@ -351,7 +351,7 @@ public function jsonSerialize(): array
351
351
return [
352
352
'id ' => $ this ->getId (),
353
353
'email ' => $ this ->getEmail (),
354
- 'auth_password ' => $ this ->getAuthPassword (),
354
+ 'auth_password ' => $ this ->getNewPassword (),
355
355
'name ' => $ this ->getName (),
356
356
'locale ' => $ this ->getLocale (),
357
357
'theme ' => $ this ->getTheme (),
0 commit comments