app/Customize/Entity/Banner.php line 17

Open in your IDE?
  1. <?php
  2. namespace Customize\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Eccube\Entity\AbstractEntity;
  5. /**
  6.  * Banner
  7.  *
  8.  * @ORM\Table(name="dtb_banner")
  9.  * @ORM\InheritanceType("SINGLE_TABLE")
  10.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  11.  * @ORM\HasLifecycleCallbacks()
  12.  * @ORM\Entity(repositoryClass="Customize\Repository\BannerRepository")
  13.  */
  14. class Banner extends AbstractEntity
  15. {
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="IDENTITY")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var boolean
  26.      *
  27.      * @ORM\Column(name="status", type="boolean", options={"default":true})
  28.      */
  29.     private $status;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="url", type="string", length=255, nullable=true)
  34.      */
  35.     private $url;
  36.     /**
  37.      * @var int
  38.      *
  39.      * @ORM\Column(name="link_method", type="integer", nullable=true)
  40.      */
  41.     private $link_method;
  42.     /**
  43.      * @var int
  44.      *
  45.      * @ORM\Column(name="sort_no", type="integer", nullable=true)
  46.      */
  47.     private $sort_no;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="image", type="string", length=255, nullable=true)
  52.      */
  53.     private $image;
  54.     /**
  55.      * @var integer
  56.      *
  57.      * @ORM\Column(name="type", type="integer", length=1, nullable=true)
  58.      */
  59.     private $type;
  60.     /**
  61.      * @var \DateTime
  62.      *
  63.      * @ORM\Column(name="create_date", type="datetimetz")
  64.      */
  65.     private $create_date;
  66.     /**
  67.      * @var \DateTime
  68.      *
  69.      * @ORM\Column(name="update_date", type="datetimetz")
  70.      */
  71.     private $update_date;
  72.     /**
  73.      * Get banner id.
  74.      *
  75.      * @return int
  76.      */
  77.     public function getId()
  78.     {
  79.         return $this->id;
  80.     }
  81.     /**
  82.      * Set banner id.
  83.      *
  84.      * @param int $id
  85.      *
  86.      * @return $this
  87.      */
  88.     public function setId($id)
  89.     {
  90.         $this->id $id;
  91.         return $this;
  92.     }
  93.     /**
  94.      * Set status.
  95.      *
  96.      * @param bool $status
  97.      *
  98.      * @return $this
  99.      */
  100.     public function setStatus($status)
  101.     {
  102.         $this->status $status;
  103.         return $this;
  104.     }
  105.     /**
  106.      * is status.
  107.      *
  108.      * @return bool
  109.      */
  110.     public function isStatus()
  111.     {
  112.         return $this->status;
  113.     }
  114.     /**
  115.      * Set url.
  116.      *
  117.      * @param string|null $url
  118.      *
  119.      * @return $this
  120.      */
  121.     public function setUrl($url null)
  122.     {
  123.         $this->url $url;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get url.
  128.      *
  129.      * @return string|null
  130.      */
  131.     public function getUrl()
  132.     {
  133.         return $this->url;
  134.     }
  135.     /**
  136.      * Get link_method.
  137.      *
  138.      * @return int
  139.      */
  140.     public function getLinkMethod()
  141.     {
  142.         return $this->link_method;
  143.     }
  144.     /**
  145.      * Set link_method.
  146.      *
  147.      * @param int $link_method
  148.      *
  149.      * @return $this
  150.      */
  151.     public function setLinkMethod($link_method)
  152.     {
  153.         $this->link_method $link_method;
  154.         return $this;
  155.     }
  156.     /**
  157.      * Get rank.
  158.      *
  159.      * @return int
  160.      */
  161.     public function getSortNo()
  162.     {
  163.         return $this->sort_no;
  164.     }
  165.     /**
  166.      * Set rank.
  167.      *
  168.      * @param int $sort_no
  169.      *
  170.      * @return $this
  171.      */
  172.     public function setSortNo($sort_no)
  173.     {
  174.         $this->sort_no $sort_no;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Set image.
  179.      *
  180.      * @param string|null $image
  181.      *
  182.      * @return $this
  183.      */
  184.     public function setImage($image null)
  185.     {
  186.         $this->image $image;
  187.         return $this;
  188.     }
  189.     /**
  190.      * Get image.
  191.      *
  192.      * @return string|null
  193.      */
  194.     public function getImage()
  195.     {
  196.         return $this->image;
  197.     }
  198.     /**
  199.      * Set type.
  200.      *
  201.      * @param integer|null $type
  202.      *
  203.      * @return Banner
  204.      */
  205.     public function setType($type null)
  206.     {
  207.         $this->type $type;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get type.
  212.      *
  213.      * @return integer|null
  214.      */
  215.     public function getType()
  216.     {
  217.         return $this->type;
  218.     }
  219.     /**
  220.      * Set create_date.
  221.      *
  222.      * @param \DateTime $createDate
  223.      *
  224.      * @return $this
  225.      */
  226.     public function setCreateDate($createDate)
  227.     {
  228.         $this->create_date $createDate;
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get create_date.
  233.      *
  234.      * @return \DateTime
  235.      */
  236.     public function getCreateDate()
  237.     {
  238.         return $this->create_date;
  239.     }
  240.     /**
  241.      * Set update_date.
  242.      *
  243.      * @param \DateTime $updateDate
  244.      *
  245.      * @return $this
  246.      */
  247.     public function setUpdateDate($updateDate)
  248.     {
  249.         $this->update_date $updateDate;
  250.         return $this;
  251.     }
  252.     /**
  253.      * Get update_date.
  254.      *
  255.      * @return \DateTime
  256.      */
  257.     public function getUpdateDate()
  258.     {
  259.         return $this->update_date;
  260.     }
  261. }