for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HMLB\UserBundle\Command;
use HMLB\DDD\Entity\Identity;
/**
* ChangeEmail.
*
* @author Hugues Maignol <[email protected]>
*/
class ChangeEmail extends UserCommand
{
* @var string
protected $email;
* @var Identity
protected $userId;
public function __construct(string $email, Identity $userId)
$this->email = $email;
$this->userId = $userId;
}
* @return string
public function getEmail(): string
return $this->email;
* @return Identity
public function getUserId(): Identity
return $this->userId;