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\SignUp;
/**
* By invitation sign up user command class.
* @author Beñat Espiña <[email protected]>
* @author Gorka Laucirica <[email protected]>
class ByInvitationSignUpUserCommand
{
* The invitation token.
* @var string
private $invitationToken;
* The plain password.
private $plainPassword;
* Constructor.
* @param string $anInvitationToken The invitation token
* @param string $aPlainPassword The plain password
public function __construct($anInvitationToken, $aPlainPassword)
$this->invitationToken = $anInvitationToken;
$this->plainPassword = $aPlainPassword;
}
* Gets the invitation token.
* @return string
public function invitationToken()
return $this->invitationToken;
* Gets the user plain password.
public function password()
return $this->plainPassword;