/**
  * @param string                     $checkNode
  * @param Mailbox                    $mailbox
  * @param PersistCollectionInterface $persistCollection
  * @param int                        $receiveMaxTime
  */
 public function __construct($checkNode, Mailbox $mailbox, PersistCollectionInterface $persistCollection, $receiveMaxTime = self::RECEIVE_MAX_TIME)
 {
     parent::__construct($checkNode);
     $this->setMailbox($mailbox);
     $this->setPersistCollection($persistCollection);
     $this->setReceiveMaxTime($receiveMaxTime);
 }
 /**
  * @param string       $checkNode
  * @param Swift_Mailer $mailer
  * @param string       $from
  * @param string       $toSubjects
  * @param int          $sendInterval
  */
 public function __construct($checkNode, Swift_Mailer $mailer, PersistCollectionInterface $persistCollection, $from, $toSubjects, $sendInterval = self::SEND_INTERVAL)
 {
     parent::__construct($checkNode);
     $this->setMailer($mailer);
     $this->setPersistCollection($persistCollection);
     $this->setFrom($from);
     $this->setToSubject($toSubjects);
     $this->setSendInterval($sendInterval);
 }