Skip to content
Snippets Groups Projects
Select Git revision
  • 573bfb703ee914e0fad2178799fcb0f0834392a2
  • master default protected
  • devel
  • feature/add-escaping-to-templates
  • feature/add-priority-sorting
  • 3.3.0
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.4.12
  • 2.4.11
  • 2.4.10
  • 2.4.9
  • 2.4.8
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.2
  • 2.3.1
  • 2.3
25 results

phpcs.xml.dist

Blame
  • EmailAbstract.php 1.49 KiB
    <?php
    
    namespace WPDesk\Library\WPEmail\Abstracts;
    
    abstract class EmailAbstract implements EmailInterface {
    
        /**
         * Define unique email ID.
         *
         * @return string
         */
        abstract 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 (wywalić do osobnej klasy ;) )
         *
         * @return void
         */
        public function send(): void {
            wp_mail(
                $this->get_recipients(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments()
            );
        }
    
    }