vendor/fri0z/mldev-base-bundle/src/Entity/Block.php line 13

Open in your IDE?
  1. <?php
  2. namespace MLDev\BaseBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Block
  6.  *
  7.  * @ORM\Table(name="MLDev_Block")
  8.  * @ORM\Entity(repositoryClass="MLDev\BaseBundle\Repository\BlockRepository")
  9.  */
  10. class Block
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=255)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="alias", type="string", length=255)
  30.      */
  31.     private $alias;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="content", type="text", nullable=true)
  36.      */
  37.     private $content;
  38.     /**
  39.      * @var bool
  40.      *
  41.      * @ORM\Column(name="is_active", type="boolean")
  42.      */
  43.     private $isActive true;
  44.     /**
  45.      * Get id
  46.      *
  47.      * @return int
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * Set name
  55.      *
  56.      * @param string $name
  57.      *
  58.      * @return Block
  59.      */
  60.     public function setName($name)
  61.     {
  62.         $this->name $name;
  63.         return $this;
  64.     }
  65.     /**
  66.      * Get name
  67.      *
  68.      * @return string
  69.      */
  70.     public function getName()
  71.     {
  72.         return $this->name;
  73.     }
  74.     /**
  75.      * Set alias
  76.      *
  77.      * @param string $alias
  78.      *
  79.      * @return Block
  80.      */
  81.     public function setAlias($alias)
  82.     {
  83.         $this->alias $alias;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get alias
  88.      *
  89.      * @return string
  90.      */
  91.     public function getAlias()
  92.     {
  93.         return $this->alias;
  94.     }
  95.     /**
  96.      * Set content
  97.      *
  98.      * @param string $content
  99.      *
  100.      * @return Block
  101.      */
  102.     public function setContent($content)
  103.     {
  104.         $this->content $content;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get content
  109.      *
  110.      * @return string
  111.      */
  112.     public function getContent()
  113.     {
  114.         return $this->content;
  115.     }
  116.     /**
  117.      * Set isActive
  118.      *
  119.      * @param boolean $isActive
  120.      *
  121.      * @return Block
  122.      */
  123.     public function setIsActive($isActive)
  124.     {
  125.         $this->isActive $isActive;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get isActive
  130.      *
  131.      * @return bool
  132.      */
  133.     public function getIsActive()
  134.     {
  135.         return $this->isActive;
  136.     }
  137. }