src/Entity/Website/Cms/Page.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Website\Cms;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Website\Website\Website;
  5. use App\Repository\Website\Cms\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 null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $title null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $content null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $metaTitle null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $metaDescription null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?array $metaKeywords null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $ogImage null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $canonicalUrl null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?bool $noIndex null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $noFollow null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $metaRobotsCustom null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $schemaType null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?array $schemaData null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?array $alternateLangs null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $breadcrumbTitle null;
  45.     #[ORM\Column(nullabletrue)]
  46.     private ?float $priorityInSitemap null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $changeFrequency null;
  49.     #[ORM\ManyToOne(inversedBy'pages')]
  50.     #[ORM\JoinColumn(nullablefalse)]
  51.     private ?Website $website null;
  52.     public function getId(): ?string
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getTitle(): ?string
  57.     {
  58.         return $this->title;
  59.     }
  60.     public function setTitle(string $title): static
  61.     {
  62.         $this->title $title;
  63.         return $this;
  64.     }
  65.     public function getContent(): ?string
  66.     {
  67.         return $this->content;
  68.     }
  69.     public function setContent(string $content): static
  70.     {
  71.         $this->content $content;
  72.         return $this;
  73.     }
  74.     public function getMetaTitle(): ?string
  75.     {
  76.         return $this->metaTitle;
  77.     }
  78.     public function setMetaTitle(?string $metaTitle): static
  79.     {
  80.         $this->metaTitle $metaTitle;
  81.         return $this;
  82.     }
  83.     public function getMetaDescription(): ?string
  84.     {
  85.         return $this->metaDescription;
  86.     }
  87.     public function setMetaDescription(?string $metaDescription): static
  88.     {
  89.         $this->metaDescription $metaDescription;
  90.         return $this;
  91.     }
  92.     public function getMetaKeywords(): ?array
  93.     {
  94.         return $this->metaKeywords;
  95.     }
  96.     public function setMetaKeywords(?array $metaKeywords): static
  97.     {
  98.         $this->metaKeywords $metaKeywords;
  99.         return $this;
  100.     }
  101.     public function getOgImage(): ?string
  102.     {
  103.         return $this->ogImage;
  104.     }
  105.     public function setOgImage(?string $ogImage): static
  106.     {
  107.         $this->ogImage $ogImage;
  108.         return $this;
  109.     }
  110.     public function getCanonicalUrl(): ?string
  111.     {
  112.         return $this->canonicalUrl;
  113.     }
  114.     public function setCanonicalUrl(?string $canonicalUrl): static
  115.     {
  116.         $this->canonicalUrl $canonicalUrl;
  117.         return $this;
  118.     }
  119.     public function isNoIndex(): ?bool
  120.     {
  121.         return $this->noIndex;
  122.     }
  123.     public function setNoIndex(?bool $noIndex): static
  124.     {
  125.         $this->noIndex $noIndex;
  126.         return $this;
  127.     }
  128.     public function isNoFollow(): ?bool
  129.     {
  130.         return $this->noFollow;
  131.     }
  132.     public function setNoFollow(?bool $noFollow): static
  133.     {
  134.         $this->noFollow $noFollow;
  135.         return $this;
  136.     }
  137.     public function getMetaRobotsCustom(): ?string
  138.     {
  139.         return $this->metaRobotsCustom;
  140.     }
  141.     public function setMetaRobotsCustom(?string $metaRobotsCustom): static
  142.     {
  143.         $this->metaRobotsCustom $metaRobotsCustom;
  144.         return $this;
  145.     }
  146.     public function getSchemaType(): ?string
  147.     {
  148.         return $this->schemaType;
  149.     }
  150.     public function setSchemaType(?string $schemaType): static
  151.     {
  152.         $this->schemaType $schemaType;
  153.         return $this;
  154.     }
  155.     public function getSchemaData(): ?array
  156.     {
  157.         return $this->schemaData;
  158.     }
  159.     public function setSchemaData(?array $schemaData): static
  160.     {
  161.         $this->schemaData $schemaData;
  162.         return $this;
  163.     }
  164.     public function getAlternateLangs(): ?array
  165.     {
  166.         return $this->alternateLangs;
  167.     }
  168.     public function setAlternateLangs(?array $alternateLangs): static
  169.     {
  170.         $this->alternateLangs $alternateLangs;
  171.         return $this;
  172.     }
  173.     public function getBreadcrumbTitle(): ?string
  174.     {
  175.         return $this->breadcrumbTitle;
  176.     }
  177.     public function setBreadcrumbTitle(?string $breadcrumbTitle): static
  178.     {
  179.         $this->breadcrumbTitle $breadcrumbTitle;
  180.         return $this;
  181.     }
  182.     public function getPriorityInSitemap(): ?float
  183.     {
  184.         return $this->priorityInSitemap;
  185.     }
  186.     public function setPriorityInSitemap(?float $priorityInSitemap): static
  187.     {
  188.         $this->priorityInSitemap $priorityInSitemap;
  189.         return $this;
  190.     }
  191.     public function getChangeFrequency(): ?string
  192.     {
  193.         return $this->changeFrequency;
  194.     }
  195.     public function setChangeFrequency(?string $changeFrequency): static
  196.     {
  197.         $this->changeFrequency $changeFrequency;
  198.         return $this;
  199.     }
  200.     public function getWebsite(): ?Website
  201.     {
  202.         return $this->website;
  203.     }
  204.     public function setWebsite(?Website $website): static
  205.     {
  206.         $this->website $website;
  207.         return $this;
  208.     }
  209. }