src/Entity/FooterLink.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Page\Page;
  4. use App\Repository\FooterLinkRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FooterLinkRepository::class)
  8.  */
  9. class FooterLink
  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, nullable=true)
  19.      */
  20.     private $namePL;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $nameEN;
  25.     /**
  26.      * @ORM\OneToOne(targetEntity=Page::class, inversedBy="footerLink", cascade={"persist", "remove"})
  27.      * @ORM\JoinColumn(nullable=true)
  28.      */
  29.     private $page;
  30.     /**
  31.      * @ORM\Column(type="datetime")
  32.      */
  33.     private $created_at;
  34.     /**
  35.      * @ORM\Column(type="datetime")
  36.      */
  37.     private $updated_at;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $contentPL;
  42.     /**
  43.      * @ORM\Column(type="text", nullable=true)
  44.      */
  45.     private $contentEN;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $urlPL;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $urlEN;
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getNamePL(): ?string
  59.     {
  60.         return $this->namePL;
  61.     }
  62.     public function setNamePL(?string $namePL): self
  63.     {
  64.         $this->namePL = $namePL;
  65.         return $this;
  66.     }
  67.     public function getNameEN(): ?string
  68.     {
  69.         return $this->nameEN;
  70.     }
  71.     public function setNameEN(?string $nameEN): self
  72.     {
  73.         $this->nameEN = $nameEN;
  74.         return $this;
  75.     }
  76.     public function getPage(): ?Page
  77.     {
  78.         return $this->page;
  79.     }
  80.     public function setPage(?Page $page): self
  81.     {
  82.         $this->page = $page;
  83.         return $this;
  84.     }
  85.     public function getCreatedAt(): ?\DateTimeInterface
  86.     {
  87.         return $this->created_at;
  88.     }
  89.     public function setCreatedAt(\DateTimeInterface $created_at): self
  90.     {
  91.         $this->created_at = $created_at;
  92.         return $this;
  93.     }
  94.     public function getUpdatedAt(): ?\DateTimeInterface
  95.     {
  96.         return $this->updated_at;
  97.     }
  98.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  99.     {
  100.         $this->updated_at = $updated_at;
  101.         return $this;
  102.     }
  103.     public function getContentPL(): ?string
  104.     {
  105.         return $this->contentPL;
  106.     }
  107.     public function setContentPL(?string $contentPL): self
  108.     {
  109.         $this->contentPL = $contentPL;
  110.         return $this;
  111.     }
  112.     public function getContentEN(): ?string
  113.     {
  114.         return $this->contentEN;
  115.     }
  116.     public function setContentEN(?string $contentEN): self
  117.     {
  118.         $this->contentEN = $contentEN;
  119.         return $this;
  120.     }
  121.     public function getUrlPL(): ?string
  122.     {
  123.         return $this->urlPL;
  124.     }
  125.     public function setUrlPL(?string $urlPL): self
  126.     {
  127.         $this->urlPL = $urlPL;
  128.         return $this;
  129.     }
  130.     public function getUrlEN(): ?string
  131.     {
  132.         return $this->urlEN;
  133.     }
  134.     public function setUrlEN(?string $urlEN): self
  135.     {
  136.         $this->urlEN = $urlEN;
  137.         return $this;
  138.     }
  139. }