Mailgun\Messages\BatchMessage::__construct PHP Method

__construct() public method

public __construct ( RestClient $restClient, string $workingDomain, boolean $autoSend )
$restClient Mailgun\Connection\RestClient
$workingDomain string
$autoSend boolean
    public function __construct($restClient, $workingDomain, $autoSend)
    {
        $this->batchRecipientAttributes = [];
        $this->autoSend = $autoSend;
        $this->restClient = $restClient;
        $this->workingDomain = $workingDomain;
        $this->endpointUrl = $workingDomain . '/messages';
    }