mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
Adding attachments and content id map (#316)
This commit is contained in:
parent
1222104e54
commit
511ad186ce
@ -150,6 +150,12 @@ class ShowResponse implements ApiResponse
|
||||
if (isset($data['body-mime'])) {
|
||||
$response->setBodyMime($data['body-mime']);
|
||||
}
|
||||
if (isset($data['attachments'])) {
|
||||
$response->setAttachments($data['attachments']);
|
||||
}
|
||||
if (isset($data['content-id-map'])) {
|
||||
$response->setContentIdMap($data['content-id-map']);
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
@ -338,6 +344,14 @@ class ShowResponse implements ApiResponse
|
||||
return $this->attachments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $attachments
|
||||
*/
|
||||
private function setAttachments($attachments)
|
||||
{
|
||||
$this->attachments = $attachments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
@ -362,6 +376,14 @@ class ShowResponse implements ApiResponse
|
||||
return $this->contentIdMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $contentIdMap
|
||||
*/
|
||||
public function setContentIdMap($contentIdMap)
|
||||
{
|
||||
$this->contentIdMap = $contentIdMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user