public function getAttachments(): array
{ return $this->attachments;
} public function getBody(): AbstractPart
{ if (null !==
$body = parent::
getBody()) { return $body;
} return $this->
generateBody();
} /**
* @return void
*/
public function ensureValidity() { $this->
ensureBodyValid();
if ('1' ===
$this->
getHeaders()->
getHeaderBody('X-Unsent'
)) { throw new LogicException('Cannot send messages marked as "draft".'
);
}