__construct() 공개 메소드

public __construct ( UserId $userId, string $email, string $password )
$userId UserId
$email string
$password string
예제 #1
0
 /**
  * @param UserId $userId
  * @param string $email
  * @param string $password
  */
 public function __construct(UserId $userId, $email, $password)
 {
     parent::__construct($userId, $email, $password);
     $this->surrogateUserId = $userId->id();
 }