Added typehinting for plain password

This commit is contained in:
Kevin Frantz 2018-09-12 19:59:14 +02:00
parent dffea5d3b9
commit 59b1be8592

View File

@ -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;
} }