src/Entity/Shop/Page/Page.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Shop\Page;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Shop\Shop\Shop;
  5. use App\Repository\Shop\Page\PageRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Entity(repositoryClassPageRepository::class)]
  10. class Page extends BaseEntity
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\Column(type'guid'uniquetrue)]
  14.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  15.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  16.     private ?string $id;
  17.     #[ORM\Column(length255)]
  18.     private ?string $title null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $description null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $imageUrl null;
  23.     #[ORM\ManyToOne(inversedBy'pages')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?Shop $shop null;
  26.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  27.     private ?string $content null;
  28.     public function __construct()
  29.     {
  30.         parent::__construct();
  31.     }
  32.     public function getId(): ?string
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getTitle(): ?string
  37.     {
  38.         return $this->title;
  39.     }
  40.     public function setTitle(string $title): static
  41.     {
  42.         $this->title $title;
  43.         return $this;
  44.     }
  45.     public function getDescription(): ?string
  46.     {
  47.         return $this->description;
  48.     }
  49.     public function setDescription(?string $description): static
  50.     {
  51.         $this->description $description;
  52.         return $this;
  53.     }
  54.     public function getImageUrl(): ?string
  55.     {
  56.         return $this->imageUrl;
  57.     }
  58.     public function setImageUrl(?string $imageUrl): static
  59.     {
  60.         $this->imageUrl $imageUrl;
  61.         return $this;
  62.     }
  63.     public function getShop(): ?Shop
  64.     {
  65.         return $this->shop;
  66.     }
  67.     public function setShop(?Shop $shop): static
  68.     {
  69.         $this->shop $shop;
  70.         return $this;
  71.     }
  72.     public function getContent(): ?string
  73.     {
  74.         return $this->content;
  75.     }
  76.     public function setContent(?string $content): static
  77.     {
  78.         $this->content $content;
  79.         return $this;
  80.     }
  81. }