/**
  * @inheritdoc
  */
 public function toEvent()
 {
     return new UserPasswordUpdatedEvent($this->uuid->toString());
 }
Exemplo n.º 2
0
 /**
  * @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();
 }
Exemplo n.º 3
0
 /**
  * @test
  */
 public function createdIdWillProperlyTranslateTypes()
 {
     $userUuid = new UserUuid('de305d54-75b4-431b-adb2-eb6b9e546013');
     static::assertInternalType('string', $userUuid->toString());
 }
Exemplo n.º 4
0
 /**
  * @param UserUuid $userUuid
  */
 public function __construct(UserUuid $userUuid, UserName $userName)
 {
     $this->userUuid = $userUuid->toString();
     $this->userName = $userName->toString();
 }