@@ 65-77 (lines=13) @@ | ||
62 | * @param \Swift_Mime_Message $message The Message to convert. |
|
63 | * @return array The resulting payload. |
|
64 | */ |
|
65 | protected function messageToPayload(\Swift_Mime_Message $message) : array |
|
66 | { |
|
67 | $payload = [ |
|
68 | 'Subject' => $message->getSubject() |
|
69 | ]; |
|
70 | ||
71 | $this->processHeaders($message, $payload); |
|
72 | $this->processAddresses($message, $payload); |
|
73 | $this->processMimeEntities($message, $payload); |
|
74 | $this->processAttachments($message, $payload); |
|
75 | ||
76 | return $payload; |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * Processes the MIME headers of a MIME Message into the payload structure passed in by reference. |
@@ 67-79 (lines=13) @@ | ||
64 | * @param \Swift_Mime_Message $message The Message to convert. |
|
65 | * @return array The resulting payload. |
|
66 | */ |
|
67 | protected function messageToPayload(\Swift_Mime_Message $message) : array |
|
68 | { |
|
69 | $payload = [ |
|
70 | 'Subject' => $message->getSubject() |
|
71 | ]; |
|
72 | ||
73 | $this->processHeaders($message, $payload); |
|
74 | $this->processAddresses($message, $payload); |
|
75 | $this->processMimeEntities($message, $payload); |
|
76 | $this->processAttachments($message, $payload); |
|
77 | ||
78 | return $payload; |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * Processes the MIME headers of a MIME Message into the payload structure passed in by reference. |