modules/XC/ThemeTweaker/src/Model/Template.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. namespace XC\ThemeTweaker\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Product option group item
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="theme_tweaker_template")
  13.  */
  14. class Template extends \XLite\Model\AEntity
  15. {
  16.     /**
  17.      * Option unique id
  18.      *
  19.      * @var integer
  20.      *
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue (strategy="AUTO")
  23.      * @ORM\Column         (type="integer")
  24.      */
  25.     protected $id;
  26.     /**
  27.      * Is enabled
  28.      *
  29.      * @var boolean
  30.      *
  31.      * @ORM\Column (type="boolean", options={"default": 1})
  32.      */
  33.     protected $enabled true;
  34.     /**
  35.      * Original template
  36.      *
  37.      * @var string
  38.      *
  39.      * @ORM\Column (type="string")
  40.      */
  41.     protected $template;
  42.     /**
  43.      * Body
  44.      *
  45.      * @var string
  46.      *
  47.      * @ORM\Column (type="text", nullable=true)
  48.      */
  49.     protected $body;
  50.     /**
  51.      * Last modified timestamp
  52.      *
  53.      * @var integer
  54.      *
  55.      * @ORM\Column (type="integer")
  56.      */
  57.     protected $date;
  58.     /**
  59.      * Get id
  60.      *
  61.      * @return integer
  62.      */
  63.     public function getId()
  64.     {
  65.         return $this->id;
  66.     }
  67.     /**
  68.      * Set template
  69.      *
  70.      * @param string $template
  71.      * @return Template
  72.      */
  73.     public function setTemplate($template)
  74.     {
  75.         $this->template $template;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Return Enabled
  80.      *
  81.      * @return string
  82.      */
  83.     public function getEnabled()
  84.     {
  85.         return $this->enabled;
  86.     }
  87.     /**
  88.      * Set Enabled
  89.      *
  90.      * @param boolean $enabled
  91.      *
  92.      * @return $this
  93.      */
  94.     public function setEnabled($enabled)
  95.     {
  96.         $this->enabled = (bool)$enabled;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get template
  101.      *
  102.      * @return string
  103.      */
  104.     public function getTemplate()
  105.     {
  106.         return $this->template;
  107.     }
  108.     /**
  109.      * Get body
  110.      *
  111.      * @return string
  112.      */
  113.     public function getBody()
  114.     {
  115.         return $this->body;
  116.     }
  117.     /**
  118.      * Set body
  119.      *
  120.      * @param string $body
  121.      *
  122.      * @return static
  123.      */
  124.     public function setBody($body)
  125.     {
  126.         $this->body $body;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Set date
  131.      *
  132.      * @param integer $date
  133.      * @return Template
  134.      */
  135.     public function setDate($date)
  136.     {
  137.         $this->date $date;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get date
  142.      *
  143.      * @return integer
  144.      */
  145.     public function getDate()
  146.     {
  147.         return $this->date;
  148.     }
  149. }