コード例 #1
0
 /**
  * DelegateMessageRenderer constructor.
  *
  * @param MessageRendererInterface $delegate The delegate message renderer.
  * @param string                   $to       The to address.
  * @param string                   $toName   The to name.
  */
 public function __construct(MessageRendererInterface $delegate, $to, $toName)
 {
     parent::__construct($delegate);
     $this->to = (string) $to;
     $this->toName = (string) $toName;
 }
コード例 #2
0
 function __construct(MessageRendererInterface $delegate, $from, $fromName)
 {
     parent::__construct($delegate);
     $this->from = (string) $from;
     $this->fromName = (string) $fromName;
 }
コード例 #3
0
 function __construct(MessageRendererInterface $delegate, $replyTo, $replyToName)
 {
     parent::__construct($delegate);
     $this->replyTo = (string) $replyTo;
     $this->replyToName = (string) $replyToName;
 }
コード例 #4
0
 function __construct(MessageRendererInterface $delegate, $sender, $senderName)
 {
     parent::__construct($delegate);
     $this->sender = (string) $sender;
     $this->senderName = (string) $senderName;
 }