Skip to content
Snippets Groups Projects
Select Git revision
  • 54430822019fe322fb8cc95c9ca9295ea2a04551
  • main default protected
  • devel
  • 1.0.0
4 results

EmailInterface.php

Blame
  • EmailInterface.php 1.20 KiB
    <?php
    
    namespace WPDesk\Library\WPEmail\Abstracts;
    
    interface EmailInterface {
    
        /**
         * Define unique email ID.
         *
         * @return string
         */
        public function get_id(): string;
    
        /**
         * Get defined placeholders.
         *
         * @return array
         */
        public function get_placeholders(): array;
    
        /**
         * Get email subject.
         *
         * @return string
         */
        public function get_subject(): string;
    
        /**
         * Get email heading.
         *
         * @return string
         */
        public function get_heading(): string;
    
        /**
         * Get valid recipients.
         *
         * @return array
         */
        public function get_recipients(): array;
    
        /**
         * Get email headers.
         *
         * @return string
         */
        public function get_headers(): string;
    
        /**
         * Get email attachments.
         *
         * @return array
         */
        public function get_attachments(): array;
    
        /**
         * Get email type.
         *
         * @return string
         */
        public function get_type(): string;
    
        /**
         * Get email content.
         *
         * @return string
         */
        public function get_content(): string;
    
        /**
         * Send email.
         *
         * @return void
         */
        public function send(): void;
    
    }