. */ namespace SP\Domain\Providers; use SP\Providers\Mail\MailParams; /** * A wrapper for a mailer */ interface MailerInterface { public function isHtml(): MailerInterface; public function addAddress(string $address): MailerInterface; public function subject(string $subject): MailerInterface; public function body(string $body): MailerInterface; public function send(): bool; public function getToAddresses(): array; public function configure(MailParams $mailParams): MailerInterface; }