for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mouf\Security\Password;
use Mouf\Html\HtmlElement\HtmlElementInterface;
use Mouf\Html\Renderer\Renderable;
class ResetPasswordView implements HtmlElementInterface
{
use Renderable;
/**
* @var string
*/
private $token;
private $passwordRules;
* @var bool
private $displayMismatchPassword;
private $displayPoorPassword;
* ResetPasswordView constructor.
*
* @param $token
* @param $passwordRules
public function __construct(string $token, string $passwordRules)
$this->token = $token;
$this->passwordRules = $passwordRules;
}
* @return string
public function getToken(): string
return $this->token;
* @param bool $displayMismatchPassword
* @return ResetPasswordView
public function withDisplayMismatchPassword(bool $displayMismatchPassword = true) : ResetPasswordView
$clone = clone $this;
$clone->displayMismatchPassword = $displayMismatchPassword;
return $clone;
* @param bool $displayPoorPassword
public function withDisplayPoorPassword(bool $displayPoorPassword = true) : ResetPasswordView
$clone->displayPoorPassword = $displayPoorPassword;