public function setQueue(QueueContract $queue)
    {
        if ($this->mailer instanceof MailerContract) {
            $this->mailer->setQueue($queue);
        }

        $this->queue = $queue;

        return $this;
    }
public function setQueue(QueueContract $queue)
    {
        if ($this->mailer instanceof MailerContract) {
            $this->mailer->setQueue($queue);
        }

        $this->queue = $queue;

        return $this;
    }
public function setQueue ( QueueContract $ queue ) { if ( $ this -> mailer instanceof MailerContract ) { $ this -> mailer -> setQueue ( $ queue ) ; } $ this -> queue = $ queue ; return $ this ; }
Set the queue manager instance.

@param  \Illuminate\Contracts\Queue\Factory  $queue

@return $this
Set the queue manager instance .