src/Entity/Content.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ContentRepository::class)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  */
  9. class Content
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $page;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $section;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $title;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $text;
  33.     /**
  34.      * @ORM\Column(type="string", length=30, nullable=true)
  35.      */
  36.     private $buttonLabel;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $buttonLink;
  41.     /**
  42.      * @ORM\Column(type="boolean", nullable=true)
  43.      */
  44.     private $hasImage;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $image;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $preTitle;
  53.     public function __construct()
  54.     {
  55.         $this->hasImage false;
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getPage(): ?string
  62.     {
  63.         return $this->page;
  64.     }
  65.     public function setPage(string $page): self
  66.     {
  67.         $this->page $page;
  68.         return $this;
  69.     }
  70.     public function getSection(): ?string
  71.     {
  72.         return $this->section;
  73.     }
  74.     public function setSection(string $section): self
  75.     {
  76.         $this->section $section;
  77.         return $this;
  78.     }
  79.     public function getText(): ?string
  80.     {
  81.         return $this->text;
  82.     }
  83.     public function setText(?string $text): self
  84.     {
  85.         $this->text $text;
  86.         return $this;
  87.     }
  88.     public function getButtonLabel(): ?string
  89.     {
  90.         return $this->buttonLabel;
  91.     }
  92.     public function setButtonLabel(?string $buttonLabel): self
  93.     {
  94.         $this->buttonLabel $buttonLabel;
  95.         return $this;
  96.     }
  97.     public function getButtonLink(): ?string
  98.     {
  99.         return $this->buttonLink;
  100.     }
  101.     public function setButtonLink(?string $buttonLink): self
  102.     {
  103.         $this->buttonLink $buttonLink;
  104.         return $this;
  105.     }
  106.     public function getTitle(): ?string
  107.     {
  108.         return $this->title;
  109.     }
  110.     public function setTitle(string $title): self
  111.     {
  112.         $this->title $title;
  113.         return $this;
  114.     }
  115.     public function getHasImage(): ?bool
  116.     {
  117.         return $this->hasImage;
  118.     }
  119.     public function setHasImage(?bool $hasImage): self
  120.     {
  121.         $this->hasImage $hasImage;
  122.         return $this;
  123.     }
  124.     public function getImage()
  125.     {
  126.         return $this->image;
  127.     }
  128.     public function setImage($image): self
  129.     {
  130.         $this->image $image;
  131.         return $this;
  132.     }
  133.     public function getPreTitle(): ?string
  134.     {
  135.         return $this->preTitle;
  136.     }
  137.     public function setPreTitle(?string $preTitle): self
  138.     {
  139.         $this->preTitle $preTitle;
  140.         return $this;
  141.     }
  142. }