Ejemplo n.º 1
0
 /**
  * @param UserIdentifier $userIdentifier
  * @param Username       $username
  * @param HashedPassword $hashedPassword
  * @param \DateTime      $at
  */
 public function __construct(UserIdentifier $userIdentifier, Username $username, HashedPassword $hashedPassword, \DateTime $at)
 {
     $this->userIdentifier = $userIdentifier->toString();
     $this->username = $username->toString();
     $this->at = $at->format('UTC');
     $this->hashedPassword = $hashedPassword->toString();
 }
Ejemplo n.º 2
0
 /**
  * @param UserIdentifier $userIdentifier
  * @param Username       $newUsername
  * @param \DateTime      $at
  */
 public function __construct(UserIdentifier $userIdentifier, Username $newUsername, \DateTime $at)
 {
     $this->userIdentifier = $userIdentifier->toString();
     $this->newUsername = $newUsername->toString();
     $this->at = $at->format('UTC');
 }