__construct() public method

public __construct ( WishId $wishId, UserId $userId, string $address, string $content )
$wishId WishId
$userId Lw\Domain\Model\User\UserId
$address string
$content string
Example #1
0
 public function __construct(WishId $wishId, UserId $userId, $email, $content)
 {
     parent::__construct($wishId, $userId, $content);
     $this->setEmail($email);
     $this->setContent($content);
     $transport = \Swift_SmtpTransport::newInstance('smtp.mandrillapp.com', 587)->setUsername('*****@*****.**')->setPassword('cIX_fPnttAiI59bAmhuwpw');
     $this->mailer = \Swift_Mailer::newInstance($transport);
 }