vendor/pimcore/pimcore/models/Document/Email.php line 23

Open in your IDE?
  1. <?php
  2. /**
  3.  * Pimcore
  4.  *
  5.  * This source file is available under two different licenses:
  6.  * - GNU General Public License version 3 (GPLv3)
  7.  * - Pimcore Commercial License (PCL)
  8.  * Full copyright and license information is available in
  9.  * LICENSE.md which is distributed with this source code.
  10.  *
  11.  *  @copyright  Copyright (c) Pimcore GmbH (http://www.pimcore.org)
  12.  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  13.  */
  14. namespace Pimcore\Model\Document;
  15. use Pimcore\Model;
  16. /**
  17.  * @method \Pimcore\Model\Document\Email\Dao getDao()
  18.  */
  19. class Email extends Model\Document\PageSnippet
  20. {
  21.     /**
  22.      * {@inheritdoc}
  23.      */
  24.     protected string $type 'email';
  25.     /**
  26.      * Contains the email subject
  27.      *
  28.      * @internal
  29.      *
  30.      * @var string
  31.      */
  32.     protected string $subject '';
  33.     /**
  34.      * Contains the from email address
  35.      *
  36.      * @internal
  37.      *
  38.      * @var string
  39.      */
  40.     protected string $from '';
  41.     /**
  42.      * Contains the reply to email addresses
  43.      *
  44.      * @internal
  45.      *
  46.      * @var string
  47.      */
  48.     protected string $replyTo '';
  49.     /**
  50.      * Contains the email addresses of the recipients
  51.      *
  52.      * @internal
  53.      *
  54.      * @var string
  55.      */
  56.     protected string $to '';
  57.     /**
  58.      * Contains the carbon copy recipients
  59.      *
  60.      * @internal
  61.      *
  62.      * @var string
  63.      */
  64.     protected string $cc '';
  65.     /**
  66.      * Contains the blind carbon copy recipients
  67.      *
  68.      * @internal
  69.      *
  70.      * @var string
  71.      */
  72.     protected string $bcc '';
  73.     /**
  74.      * {@inheritdoc}
  75.      */
  76.     protected bool $supportsContentMain false;
  77.     /**
  78.      * Contains the email subject
  79.      *
  80.      * @param string $subject
  81.      *
  82.      * @return $this
  83.      */
  84.     public function setSubject($subject)
  85.     {
  86.         $this->subject $subject;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Returns the email subject
  91.      *
  92.      * @return string
  93.      */
  94.     public function getSubject()
  95.     {
  96.         return $this->subject;
  97.     }
  98.     /**
  99.      * Sets the "to" receiver
  100.      *
  101.      * @param string $to
  102.      *
  103.      * @return $this
  104.      */
  105.     public function setTo($to)
  106.     {
  107.         $this->to $to;
  108.         return $this;
  109.     }
  110.     /**
  111.      * Returns the "to" receivers
  112.      *
  113.      * @return string
  114.      */
  115.     public function getTo()
  116.     {
  117.         return $this->to;
  118.     }
  119.     /**
  120.      * Sets the "from" email address
  121.      *
  122.      * @param string $from
  123.      *
  124.      * @return $this
  125.      */
  126.     public function setFrom($from)
  127.     {
  128.         $this->from $from;
  129.         return $this;
  130.     }
  131.     /**
  132.      * Returns the "from" email address
  133.      *
  134.      * @return string
  135.      */
  136.     public function getFrom()
  137.     {
  138.         return $this->from;
  139.     }
  140.     /**
  141.      * Sets the "replyTo" email address
  142.      *
  143.      * @param string $replyTo
  144.      *
  145.      * @return $this
  146.      */
  147.     public function setReplyTo($replyTo)
  148.     {
  149.         $this->replyTo $replyTo;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Returns the "replyTo" email address
  154.      *
  155.      * @return string
  156.      */
  157.     public function getReplyTo()
  158.     {
  159.         return $this->replyTo;
  160.     }
  161.     /**
  162.      * Sets the carbon copy receivers (multiple receivers should be separated with a ",")
  163.      *
  164.      * @param string $cc
  165.      *
  166.      * @return $this
  167.      */
  168.     public function setCc($cc)
  169.     {
  170.         $this->cc $cc;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Returns the carbon copy receivers
  175.      *
  176.      * @return string
  177.      */
  178.     public function getCc()
  179.     {
  180.         return $this->cc;
  181.     }
  182.     /**
  183.      * Sets the blind carbon copy receivers (multiple receivers should be separated with a ",")
  184.      *
  185.      * @param string $bcc
  186.      *
  187.      * @return $this
  188.      */
  189.     public function setBcc($bcc)
  190.     {
  191.         $this->bcc $bcc;
  192.         return $this;
  193.     }
  194.     /**
  195.      * Returns the blind carbon copy receivers
  196.      *
  197.      * @return string
  198.      */
  199.     public function getBcc()
  200.     {
  201.         return $this->bcc;
  202.     }
  203. }