src/Daikin/BaseBundle/Entity/Staticpages.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Daikin\BaseBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="static_pages")
  8.  */
  9. class Staticpages
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\Column(type="integer")
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      *
  16.      * @var integer $id
  17.      */
  18.     protected $id;
  19.     /**
  20.      * @ORM\Column(type="string", name="name")
  21.      *
  22.      * @var string $name
  23.      */
  24.     protected $name;
  25.     /**
  26.      * @ORM\Column(type="string", name="alias")
  27.      *
  28.      * @var string $alias
  29.      */
  30.     protected $alias;
  31.     /**
  32.      * @ORM\Column(type="text", nullable=true)
  33.      *
  34.      * @var string $url
  35.      */
  36.     protected $url;
  37.     /**
  38.      * @ORM\Column(type="string", name="lang")
  39.      *
  40.      * @var string $lang
  41.      */
  42.     protected $lang;
  43.     /**
  44.      * @ORM\Column(type="text", length=65532, name="description")
  45.      *
  46.      * @var string $description
  47.      */
  48.     protected $description;
  49.     /**
  50.      * @var bool
  51.      * @ORM\Column(name="showDescriptionOnly", type="boolean")
  52.      */
  53.     private $showDescriptionOnly;
  54.     /**
  55.      * @var bool
  56.      * @ORM\Column(name="showInFooterMenu", type="boolean")
  57.      */
  58.     private $showInFooterMenu;
  59.     /**
  60.      * Constructs a new instance
  61.      */
  62.     public function __construct()
  63.     {
  64.         $this->showDescriptionOnly false;
  65.         $this->showInFooterMenu true;
  66.     }
  67.     /**
  68.      * Get id
  69.      *
  70.      * @return integer
  71.      */
  72.     public function getId()
  73.     {
  74.         return $this->id;
  75.     }
  76.     /**
  77.      * Set name
  78.      *
  79.      * @param string $name
  80.      */
  81.     public function setName($name)
  82.     {
  83.         $this->name $name;
  84.     }
  85.     /**
  86.      * Get name
  87.      *
  88.      * @return string
  89.      */
  90.     public function getName()
  91.     {
  92.         return $this->name;
  93.     }
  94.     /**
  95.      * Set alias
  96.      *
  97.      * @param string $alias
  98.      */
  99.     public function setAlias($alias)
  100.     {
  101.         $this->alias $alias;
  102.     }
  103.     /**
  104.      * Get alias
  105.      *
  106.      * @return string
  107.      */
  108.     public function getAlias()
  109.     {
  110.         return $this->alias;
  111.     }
  112.     /**
  113.      * Set lang
  114.      *
  115.      * @param string $lang
  116.      */
  117.     public function setLang($lang)
  118.     {
  119.         $this->lang $lang;
  120.     }
  121.     /**
  122.      * Get lang
  123.      *
  124.      * @return string
  125.      */
  126.     public function getLang()
  127.     {
  128.         return $this->lang;
  129.     }
  130.     /**
  131.      * Set description
  132.      *
  133.      * @param string $description
  134.      */
  135.     public function setDescription($description)
  136.     {
  137.         $this->description $description;
  138.     }
  139.     /**
  140.      * Get description
  141.      *
  142.      * @return string
  143.      */
  144.     public function getDescription()
  145.     {
  146.         return $this->description;
  147.     }
  148.     /**
  149.      * @return string
  150.      */
  151.     public function getUrl()
  152.     {
  153.         return $this->url;
  154.     }
  155.     /**
  156.      * @param string $url
  157.      * @return Staticpages
  158.      */
  159.     public function setUrl($url)
  160.     {
  161.         $this->url $url;
  162.         return $this;
  163.     }
  164.     /**
  165.      * @return bool
  166.      */
  167.     public function isShowDescriptionOnly()
  168.     {
  169.         return $this->showDescriptionOnly;
  170.     }
  171.     /**
  172.      * @param bool $showDescriptionOnly
  173.      * @return Staticpages
  174.      */
  175.     public function setShowDescriptionOnly($showDescriptionOnly)
  176.     {
  177.         $this->showDescriptionOnly $showDescriptionOnly;
  178.         return $this;
  179.     }
  180.     /**
  181.      * @return bool
  182.      */
  183.     public function isShowInFooterMenu()
  184.     {
  185.         return $this->showInFooterMenu;
  186.     }
  187.     /**
  188.      * @param bool $showInFooterMenu
  189.      * @return Staticpages
  190.      */
  191.     public function setShowInFooterMenu($showInFooterMenu)
  192.     {
  193.         $this->showInFooterMenu $showInFooterMenu;
  194.         return $this;
  195.     }
  196. }