app/Customize/Entity/Inquiry.php line 33

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 Customize\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Eccube\Entity\AbstractEntity;
  15. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  16. use Symfony\Component\Security\Core\User\UserInterface;
  17. use Symfony\Component\Validator\Constraints as Assert;
  18. use Symfony\Component\Validator\Mapping\ClassMetadata;
  19. if (!class_exists('\Customize\Entity\Inquiry')) {
  20.     /**
  21.      * Inquiry
  22.      *
  23.      * @ORM\Table(name="dtb_inquiry", uniqueConstraints={@ORM\UniqueConstraint(name="id", columns={"id"})},  indexes={@ORM\Index(name="dtb_inquiry_create_date_idx", columns={"create_date"}), @ORM\Index(name="dtb_inquiry_update_date_idx", columns={"update_date"}), @ORM\Index(name="dtb_inquiry_email_idx", columns={"email"})})
  24.      * @ORM\InheritanceType("SINGLE_TABLE")
  25.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  26.      * @ORM\HasLifecycleCallbacks()
  27.      * @ORM\Entity(repositoryClass="Customize\Repository\InquiryRepository")
  28.      */
  29.     class Inquiry extends AbstractEntity 
  30.     {
  31.         /**
  32.         * @var int
  33.         *
  34.         * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  35.         * @ORM\Id
  36.         * @ORM\GeneratedValue(strategy="IDENTITY")
  37.         */
  38.         private $id;
  39.         /**
  40.         * @var string
  41.         *
  42.         * @ORM\Column(name="name", type="string", length=255)
  43.         */
  44.         private $name;
  45.         
  46.         /**
  47.          * @var string|null
  48.          *
  49.          * @ORM\Column(name="kana", type="string", length=255, nullable=true)
  50.          */
  51.         private $kana;
  52.         
  53.         /**
  54.          * @var string
  55.          *
  56.          * @ORM\Column(name="email", type="string", length=255)
  57.          */
  58.         private $email;
  59.         
  60.         /**
  61.          * @var string
  62.          *
  63.          * @ORM\Column(name="title", type="string", length=255)
  64.          */
  65.         private $title;
  66.         
  67.         /**
  68.          * @var string
  69.          *
  70.          * @ORM\Column(name="content", type="text")
  71.          */
  72.         private $content;
  73.         /**
  74.          * @var \DateTime
  75.          *
  76.          * @ORM\Column(name="create_date", type="datetimetz")
  77.          */
  78.         private $create_date;
  79.         /**
  80.          * @var \DateTime
  81.          *
  82.          * @ORM\Column(name="update_date", type="datetimetz")
  83.          */
  84.         private $update_date;
  85.          /**
  86.          * Get id.
  87.          *
  88.          * @return int
  89.          */
  90.         public function getId()
  91.         {
  92.             return $this->id;
  93.         }
  94.         /**
  95.          * Set name.
  96.          *
  97.          * @param string $name
  98.          *
  99.          * @return Inquiry
  100.          */
  101.         public function setName($name)
  102.         {
  103.             $this->name $name;
  104.             return $this;
  105.         }
  106.         /**
  107.          * Get name.
  108.          *
  109.          * @return string
  110.          */
  111.         public function getName()
  112.         {
  113.             return $this->name;
  114.         }
  115.         /**
  116.          * Set kana.
  117.          *
  118.          * @param string $kana
  119.          *
  120.          * @return Inquiry
  121.          */
  122.         public function setKana($kana)
  123.         {
  124.             $this->kana $kana;
  125.             return $this;
  126.         }
  127.         /**
  128.          * Get kana.
  129.          *
  130.          * @return string
  131.          */
  132.         public function getKana()
  133.         {
  134.             return $this->kana;
  135.         }
  136.         
  137.         /**
  138.          * Set email.
  139.          *
  140.          * @param string $email
  141.          *
  142.          * @return Inquiry
  143.          */
  144.         public function setEmail($email)
  145.         {
  146.             $this->email $email;
  147.             return $this;
  148.         }
  149.         /**
  150.          * Get email.
  151.          *
  152.          * @return string
  153.          */
  154.         public function getEmail()
  155.         {
  156.             return $this->email;
  157.         }
  158.         
  159.         /**
  160.          * Set title.
  161.          *
  162.          * @param string $title
  163.          *
  164.          * @return Inquiry
  165.          */
  166.         public function setTitle($title)
  167.         {
  168.             $this->title $title;
  169.             return $this;
  170.         }
  171.         /**
  172.          * Get title.
  173.          *
  174.          * @return string
  175.          */
  176.         public function getTitle()
  177.         {
  178.             return $this->title;
  179.         }
  180.         
  181.         /**
  182.          * Set content.
  183.          *
  184.          * @param string $content
  185.          *
  186.          * @return Inquiry
  187.          */
  188.         public function setContent($content)
  189.         {
  190.             $this->content $content;
  191.             return $this;
  192.         }
  193.         /**
  194.          * Get content.
  195.          *
  196.          * @return string
  197.          */
  198.         public function getContent()
  199.         {
  200.             return $this->content;
  201.         }
  202.         /**
  203.          * Set createDate.
  204.          *
  205.          * @param \DateTime $createDate
  206.          *
  207.          * @return Inquiry
  208.          */
  209.         public function setCreateDate($createDate)
  210.         {
  211.             $this->create_date $createDate;
  212.             return $this;
  213.         }
  214.         /**
  215.          * Get createDate.
  216.          *
  217.          * @return \DateTime
  218.          */
  219.         public function getCreateDate()
  220.         {
  221.             return $this->create_date;
  222.         }
  223.         /**
  224.          * Set updateDate.
  225.          *
  226.          * @param \DateTime $updateDate
  227.          *
  228.          * @return Inquiry
  229.          */
  230.         public function setUpdateDate($updateDate)
  231.         {
  232.             $this->update_date $updateDate;
  233.             return $this;
  234.         }
  235.         /**
  236.          * Get updateDate.
  237.          *
  238.          * @return \DateTime
  239.          */
  240.         public function getUpdateDate()
  241.         {
  242.             return $this->update_date;
  243.         }
  244.     }
  245. }