app/Customize/Entity/Brand.php line 15

Open in your IDE?
  1. <?php
  2. namespace Customize\Entity;
  3. use Doctrine\Common\Collections\Criteria;
  4. use Doctrine\ORM\Mapping as ORM;
  5. if (!class_exists('\Eccube\Entity\Brand')) {
  6.     /**
  7.      * Brand
  8.      *
  9.      * @ORM\Table(name="dtb_brand")
  10.      * @ORM\Entity(repositoryClass="Customize\Repository\BrandRepository")
  11.      */
  12.     class Brand extends \Eccube\Entity\AbstractEntity
  13.     {
  14.         /**
  15.          * @var int
  16.          *
  17.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  18.          * @ORM\Id
  19.          * @ORM\GeneratedValue(strategy="IDENTITY")
  20.          */
  21.         private $id;
  22.         /**
  23.          * @var string
  24.          *
  25.          * @ORM\Column(name="name", type="string", length=255)
  26.          */
  27.         private $name;
  28.         /**
  29.          * @var \DateTime
  30.          *
  31.          * @ORM\Column(name="create_date", type="datetimetz")
  32.          */
  33.         private $create_date;
  34.         /**
  35.          * @var \DateTime
  36.          *
  37.          * @ORM\Column(name="update_date", type="datetimetz")
  38.          */
  39.         private $update_date;
  40.         /**
  41.          * Get id.
  42.          *
  43.          * @return int
  44.          */
  45.         public function getId()
  46.         {
  47.             return $this->id;
  48.         }
  49.         /**
  50.          * Set name.
  51.          *
  52.          * @param string $name
  53.          *
  54.          * @return Brand
  55.          */
  56.         public function setName($name)
  57.         {
  58.             $this->name $name;
  59.             return $this;
  60.         }
  61.         /**
  62.          * Get name.
  63.          *
  64.          * @return string
  65.          */
  66.         public function getName()
  67.         {
  68.             return $this->name;
  69.         }
  70.         /**
  71.          * Set createDate.
  72.          *
  73.          * @param \DateTime $createDate
  74.          *
  75.          * @return Brand
  76.          */
  77.         public function setCreateDate($createDate)
  78.         {
  79.             $this->create_date $createDate;
  80.             return $this;
  81.         }
  82.         /**
  83.          * Get createDate.
  84.          *
  85.          * @return \DateTime
  86.          */
  87.         public function getCreateDate()
  88.         {
  89.             return $this->create_date;
  90.         }
  91.         /**
  92.          * Set updateDate.
  93.          *
  94.          * @param \DateTime $updateDate
  95.          *
  96.          * @return Brand
  97.          */
  98.         public function setUpdateDate($updateDate)
  99.         {
  100.             $this->update_date $updateDate;
  101.             return $this;
  102.         }
  103.         /**
  104.          * Get updateDate.
  105.          *
  106.          * @return \DateTime
  107.          */
  108.         public function getUpdateDate()
  109.         {
  110.             return $this->update_date;
  111.         }
  112.     }
  113. }