vendor/score/cms/src/Entity/Page/PageBlock.php line 11

Open in your IDE?
  1. <?php
  2. namespace Score\CmsBundle\Entity\Page;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  * @ORM\Table(name="cms_page_block")
  7.  */
  8. class PageBlock {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\Column(type="integer")
  12.      * @ORM\GeneratedValue(strategy="AUTO")
  13.      */
  14.     protected $id;
  15.     /**
  16.      * @ORM\Column(type="integer", nullable = true)
  17.      */
  18.     protected $sortOrder;
  19.     /**
  20.      * @ORM\Column(type="string", length=100, nullable = true)
  21.      */
  22.     protected $status;
  23.     /**
  24.      * @ORM\Column(type="date", nullable = true)
  25.      */
  26.     protected $createdAt;
  27.     /**
  28.      * @ORM\Column(type="string", nullable = true)
  29.      */
  30.     protected $lang;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="Page", inversedBy="pageBlocks")
  33.      * @ORM\JoinColumn(name="page_id", referencedColumnName="id")
  34.      */
  35.     private $page;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="Score\CmsBundle\Entity\Block\Block", inversedBy="pageBlocks")
  38.      * @ORM\JoinColumn(name="block_id", referencedColumnName="id")
  39.      */
  40.     private $block;
  41.     /**
  42.      * @ORM\Column(type="string", nullable = true)
  43.      */
  44.     protected $place;
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getSortOrder()
  50.     {
  51.         return $this->sortOrder;
  52.     }
  53.     public function getStatus()
  54.     {
  55.         return $this->status;
  56.     }
  57.     public function getCreatedAt()
  58.     {
  59.         return $this->createdAt;
  60.     }
  61.     public function getLang()
  62.     {
  63.         return $this->lang;
  64.     }
  65.     public function getPage()
  66.     {
  67.         return $this->page;
  68.     }
  69.     public function getBlock()
  70.     {
  71.         return $this->block;
  72.     }
  73.     public function getPlace()
  74.     {
  75.         return $this->place;
  76.     }
  77.     public function setId($id)
  78.     {
  79.         $this->id $id;
  80.     }
  81.     public function setSortOrder($sortOrder)
  82.     {
  83.         $this->sortOrder $sortOrder;
  84.     }
  85.     public function setStatus($status)
  86.     {
  87.         $this->status $status;
  88.     }
  89.     public function setCreatedAt($createdAt)
  90.     {
  91.         $this->createdAt $createdAt;
  92.     }
  93.     public function setLang($lang)
  94.     {
  95.         $this->lang $lang;
  96.     }
  97.     public function setPage($page)
  98.     {
  99.         $this->page $page;
  100.     }
  101.     public function setBlock($block)
  102.     {
  103.         $this->block $block;
  104.     }
  105.     public function setPlace($place)
  106.     {
  107.         $this->place $place;
  108.     }
  109. }