/**
  * @inheritdoc
  */
 public function toEvent()
 {
     return new UserPasswordUpdatedEvent($this->uuid->toString());
 }
 /**
  * @param UserUuid $userUuid
  * @param UserName $userName
  * @param UserEmail $email
  */
 public function __construct(UserUuid $userUuid, UserName $userName, UserEmail $email)
 {
     $this->userUuid = $userUuid->toString();
     $this->userName = $userName->toString();
     $this->userEmail = $email->toString();
 }
 /**
  * @test
  */
 public function createdIdWillProperlyTranslateTypes()
 {
     $userUuid = new UserUuid('de305d54-75b4-431b-adb2-eb6b9e546013');
     static::assertInternalType('string', $userUuid->toString());
 }
 /**
  * @param UserUuid $userUuid
  */
 public function __construct(UserUuid $userUuid, UserName $userName)
 {
     $this->userUuid = $userUuid->toString();
     $this->userName = $userName->toString();
 }