public function __construct(MailgunApi $api) { $this->_api = $api; $this->_from = $api->getFrom(); $this->_tags = $api->getTags(); $this->_campaignId = $api->getCampaignId(); $this->_enableDkim = $api->getIsDkimEnabled(); $this->_enableTestMode = $api->getIsTestModeEnabled(); $this->_enableTracking = $api->getIsTrackingEnabled(); $this->_clicksTrackingMode = $api->getClicksTrackingMode(); $this->_enableOpensTracking = $api->getIsOpensTrackingEnabled(); }
public function __construct(MailgunApi $api) { if (self::$_legacyAttachMode === null) { self::$_legacyAttachMode = !class_exists('CURLFile', false); } $this->_api = $api; $this->_from = $api->getFrom(); $this->_tags = $api->getTags(); $this->_campaignId = $api->getCampaignId(); $this->_enableDkim = $api->getIsDkimEnabled(); $this->_enableTestMode = $api->getIsTestModeEnabled(); $this->_enableTracking = $api->getIsTrackingEnabled(); $this->_clicksTrackingMode = $api->getClicksTrackingMode(); $this->_enableOpensTracking = $api->getIsOpensTrackingEnabled(); }