for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorUser package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorUser\User\Application\Command\ChangePassword;
/**
* Without old password change user password command class.
* @author Beñat Espiña <[email protected]>
* @author Gorka Laucirica <[email protected]>
class WithoutOldPasswordChangeUserPasswordCommand
{
* The user email.
* @var string
private $email;
* The new plain password.
private $newPlainPassword;
* Constructor.
* @param string $anEmail The user email
* @param string $aNewPlainPassword The new plain password
public function __construct($anEmail, $aNewPlainPassword)
$this->email = $anEmail;
$this->newPlainPassword = $aNewPlainPassword;
}
* Gets the user email.
* @return string
public function email()
return $this->email;
* Gets the new plain password.
public function newPlainPassword()
return $this->newPlainPassword;