src/Entity/PageBlock.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\CommonTrait;
  4. use App\Repository\PageBlockRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PageBlockRepository::class)
  9.  * @ORM\Table(name="app_page_block")
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @UniqueEntity({"uuid"})
  12.  */
  13. class PageBlock
  14. {
  15.     use CommonTrait;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $template;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $uKey;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getName(): ?string
  33.     {
  34.         return $this->name;
  35.     }
  36.     public function setName(string $name): self
  37.     {
  38.         $this->name $name;
  39.         return $this;
  40.     }
  41.     public function getTemplate(): ?string
  42.     {
  43.         return $this->template;
  44.     }
  45.     public function setTemplate(string $template): self
  46.     {
  47.         $this->template $template;
  48.         return $this;
  49.     }
  50.     public function getUKey(): ?string
  51.     {
  52.         return $this->uKey;
  53.     }
  54.     public function setUKey(string $uKey): self
  55.     {
  56.         $this->uKey $uKey;
  57.         return $this;
  58.     }
  59.     public function __toString() {
  60.         return $this->name;
  61.     }
  62. }