mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 22:17:26 +01:00
Added typehinting for plain password
This commit is contained in:
parent
dffea5d3b9
commit
59b1be8592
@ -10,9 +10,10 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||||||
trait PlainPasswordAttribute {
|
trait PlainPasswordAttribute {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @Assert\NotBlank()
|
* @Assert\NotBlank()
|
||||||
* @Assert\Length(max=4096)
|
* @Assert\Length(max=4096)
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $plainPassword;
|
private $plainPassword;
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ trait PlainPasswordAttribute {
|
|||||||
return $this->plainPassword;
|
return $this->plainPassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setPlainPassword($password): void
|
public function setPlainPassword(string $password): void
|
||||||
{
|
{
|
||||||
$this->plainPassword = $password;
|
$this->plainPassword = $password;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user