src/Eccube/Entity/MailTemplate.php line 28

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. if (!class_exists('\Eccube\Entity\MailTemplate')) {
  15.     /**
  16.      * MailTemplate
  17.      *
  18.      * @ORM\Table(name="dtb_mail_template")
  19.      * @ORM\InheritanceType("SINGLE_TABLE")
  20.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  21.      * @ORM\HasLifecycleCallbacks()
  22.      * @ORM\Entity(repositoryClass="Eccube\Repository\MailTemplateRepository")
  23.      */
  24.     class MailTemplate extends \Eccube\Entity\AbstractEntity
  25.     {
  26.         /**
  27.          * @return string
  28.          */
  29.         public function __toString()
  30.         {
  31.             return $this->getName() ? $this->getName() : '';
  32.         }
  33.         /**
  34.          * @var int
  35.          *
  36.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  37.          * @ORM\Id
  38.          * @ORM\GeneratedValue(strategy="IDENTITY")
  39.          */
  40.         private $id;
  41.         /**
  42.          * @var string|null
  43.          *
  44.          * @ORM\Column(name="name", type="string", length=255, nullable=true)
  45.          */
  46.         private $name;
  47.         /**
  48.          * @var string|null
  49.          *
  50.          * @ORM\Column(name="file_name", type="string", length=255, nullable=true)
  51.          */
  52.         private $file_name;
  53.         /**
  54.          * @var string|null
  55.          *
  56.          * @ORM\Column(name="mail_subject", type="string", length=255, nullable=true)
  57.          */
  58.         private $mail_subject;
  59.         /**
  60.          * @var \DateTime
  61.          *
  62.          * @ORM\Column(name="create_date", type="datetimetz")
  63.          */
  64.         private $create_date;
  65.         /**
  66.          * @var \DateTime
  67.          *
  68.          * @ORM\Column(name="update_date", type="datetimetz")
  69.          */
  70.         private $update_date;
  71.         /**
  72.          * @var \Eccube\Entity\Member
  73.          *
  74.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
  75.          * @ORM\JoinColumns({
  76.          *   @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
  77.          * })
  78.          */
  79.         private $Creator;
  80.         /**
  81.          * Get id.
  82.          *
  83.          * @return int
  84.          */
  85.         public function getId()
  86.         {
  87.             return $this->id;
  88.         }
  89.         /**
  90.          * Set name.
  91.          *
  92.          * @param string|null $name
  93.          *
  94.          * @return MailTemplate
  95.          */
  96.         public function setName($name null)
  97.         {
  98.             $this->name $name;
  99.             return $this;
  100.         }
  101.         /**
  102.          * Get name.
  103.          *
  104.          * @return string|null
  105.          */
  106.         public function getName()
  107.         {
  108.             return $this->name;
  109.         }
  110.         /**
  111.          * Set fileName.
  112.          *
  113.          * @param string|null $fileName
  114.          *
  115.          * @return MailTemplate
  116.          */
  117.         public function setFileName($fileName null)
  118.         {
  119.             $this->file_name $fileName;
  120.             return $this;
  121.         }
  122.         /**
  123.          * Get fileName.
  124.          *
  125.          * @return string|null
  126.          */
  127.         public function getFileName()
  128.         {
  129.             return $this->file_name;
  130.         }
  131.         /**
  132.          * Set mailSubject.
  133.          *
  134.          * @param string|null $mailSubject
  135.          *
  136.          * @return MailTemplate
  137.          */
  138.         public function setMailSubject($mailSubject null)
  139.         {
  140.             $this->mail_subject $mailSubject;
  141.             return $this;
  142.         }
  143.         /**
  144.          * Get mailSubject.
  145.          *
  146.          * @return string|null
  147.          */
  148.         public function getMailSubject()
  149.         {
  150.             return $this->mail_subject;
  151.         }
  152.         /**
  153.          * Set createDate.
  154.          *
  155.          * @param \DateTime $createDate
  156.          *
  157.          * @return MailTemplate
  158.          */
  159.         public function setCreateDate($createDate)
  160.         {
  161.             $this->create_date $createDate;
  162.             return $this;
  163.         }
  164.         /**
  165.          * Get createDate.
  166.          *
  167.          * @return \DateTime
  168.          */
  169.         public function getCreateDate()
  170.         {
  171.             return $this->create_date;
  172.         }
  173.         /**
  174.          * Set updateDate.
  175.          *
  176.          * @param \DateTime $updateDate
  177.          *
  178.          * @return MailTemplate
  179.          */
  180.         public function setUpdateDate($updateDate)
  181.         {
  182.             $this->update_date $updateDate;
  183.             return $this;
  184.         }
  185.         /**
  186.          * Get updateDate.
  187.          *
  188.          * @return \DateTime
  189.          */
  190.         public function getUpdateDate()
  191.         {
  192.             return $this->update_date;
  193.         }
  194.         /**
  195.          * Set creator.
  196.          *
  197.          * @param \Eccube\Entity\Member|null $creator
  198.          *
  199.          * @return MailTemplate
  200.          */
  201.         public function setCreator(Member $creator null)
  202.         {
  203.             $this->Creator $creator;
  204.             return $this;
  205.         }
  206.         /**
  207.          * Get creator.
  208.          *
  209.          * @return \Eccube\Entity\Member|null
  210.          */
  211.         public function getCreator()
  212.         {
  213.             return $this->Creator;
  214.         }
  215.     }
  216. }