src/Entity/SeoPageClient.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SeoPageClientRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassSeoPageClientRepository::class)]
  8. class SeoPageClient
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14. #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $title;
  16. #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $description;
  18.     #[ORM\Column(type'boolean'options: ['default' => 0])]
  19.     private $active=false;
  20.     #[ORM\Column(type'boolean'options: ['default' => 0])]
  21.     private $use_default_title=false;
  22.     #[ORM\Column(type'boolean'options: ['default' => 0])]
  23.     private $use_default_description=false;
  24.     #[ORM\ManyToOne(targetEntityParameters::class, inversedBy'seopages'cascade: ['persist''remove'])]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private $parameter_id;
  27.     #[ORM\ManyToOne(targetEntitySeoPage::class)]
  28.     #[ORM\JoinColumn(nullabletrue)]
  29.     private $seopage_id;
  30.     #[ORM\Column(type'string'length255)]
  31.     private $name;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $template;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $default_title;
  36.     #[ORM\Column(type'string'length255nullabletrue)]
  37.     private $default_description;
  38.   #[ORM\Column(type'text'nullabletrue)]
  39.     private $page_title;
  40.     #[ORM\Column(type'text'nullabletrue)]
  41.     private $page_descripion;
  42.     #[ORM\Column(type'string'length255nullabletrue)]
  43.     private $page_media;
  44.     #[ORM\Column(type'text'nullabletrue)]
  45.     private $services_title;
  46.     #[ORM\Column(type'text'nullabletrue)]
  47.     private $services_description;
  48.     #[ORM\Column(type'string'length255nullabletrue)]
  49.     private $page_video;
  50.     #[ORM\OneToMany(targetEntityPageClientService::class, mappedBy'seopageclient'orphanRemovaltruecascade: ['persist''remove'])]
  51.     private $pageClientServices;
  52.     #[ORM\Column(type'datetime'nullabletrue)]
  53.     private $updatedAt;
  54.     #[ORM\Column(type'string'length255nullabletrue)]
  55.     private $pdf_plaquette;
  56.     #[ORM\ManyToOne(targetEntityTypeSeoPage::class, inversedBy'seoPageClients')]
  57.     private $type;
  58.     #[ORM\Column(type'string'length255nullabletrue)]
  59.     private $url;
  60.     #[ORM\Column(type'string'length255nullabletrue)]
  61.     private $uri;
  62.     public function __construct()
  63.     {
  64.         $this->pageClientServices = new ArrayCollection();
  65.     }
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getTitle(): ?string
  71.     {
  72.         return $this->title;
  73.     }
  74.     public function setTitle(string $title): self
  75.     {
  76.         $this->title $title;
  77.         return $this;
  78.     }
  79.     public function getDescription(): ?string
  80.     {
  81.         return $this->description;
  82.     }
  83.     public function setDescription(?string $description): self
  84.     {
  85.         $this->description $description;
  86.         return $this;
  87.     }
  88.     public function getActive(): ?bool
  89.     {
  90.         return $this->active;
  91.     }
  92.     public function setActive(bool $active): self
  93.     {
  94.         $this->active $active;
  95.         return $this;
  96.     }
  97.     public function getUseDefaultTitle(): ?bool
  98.     {
  99.         return $this->use_default_title;
  100.     }
  101.     public function setUseDefaultTitle(bool $use_default_title): self
  102.     {
  103.         $this->use_default_title $use_default_title;
  104.         return $this;
  105.     }
  106.     public function getUseDefaultDescription(): ?bool
  107.     {
  108.         return $this->use_default_description;
  109.     }
  110.     public function setUseDefaultDescription(bool $use_default_description): self
  111.     {
  112.         $this->use_default_description $use_default_description;
  113.         return $this;
  114.     }
  115.     public function getParameterId(): ?Parameters
  116.     {
  117.         return $this->parameter_id;
  118.     }
  119.     public function setParameterId(?Parameters $parameter_id): self
  120.     {
  121.         $this->parameter_id $parameter_id;
  122.         return $this;
  123.     }
  124.     public function getSeopageId(): ?SeoPage
  125.     {
  126.         return $this->seopage_id;
  127.     }
  128.     public function setSeopageId(SeoPage $seopage_id): self
  129.     {
  130.         $this->seopage_id $seopage_id;
  131.         return $this;
  132.     }
  133.     public function getName(): ?string
  134.     {
  135.         return $this->name;
  136.     }
  137.     public function setName(string $name): self
  138.     {
  139.         $this->name $name;
  140.         return $this;
  141.     }
  142.     public function getTemplate(): ?string
  143.     {
  144.         return $this->template;
  145.     }
  146.     public function setTemplate(?string $template): self
  147.     {
  148.         $this->template $template;
  149.         return $this;
  150.     }
  151.     public function getDefaultTitle(): ?string
  152.     {
  153.         return $this->default_title;
  154.     }
  155.     public function setDefaultTitle(?string $default_title): self
  156.     {
  157.         $this->default_title $default_title;
  158.         return $this;
  159.     }
  160.     public function getDefaultDescription(): ?string
  161.     {
  162.         return $this->default_description;
  163.     }
  164.     public function setDefaultDescription(?string $default_description): self
  165.     {
  166.         $this->default_description $default_description;
  167.         return $this;
  168.     }
  169.     public function __toString()
  170.     {
  171.         return $this->title;
  172.     }
  173.  public function getPageTitle(): ?string
  174.                                                                                            {
  175.                                                                                                return $this->page_title;
  176.                                                                                            }
  177.     public function setPageTitle(?string $page_title): self
  178.     {
  179.         $this->page_title $page_title;
  180.         return $this;
  181.     }
  182.     public function getPageDescripion(): ?string
  183.     {
  184.         return $this->page_descripion;
  185.     }
  186.     public function setPageDescripion(?string $page_descripion): self
  187.     {
  188.         $this->page_descripion $page_descripion;
  189.         return $this;
  190.     }
  191.     public function getPageMedia(): ?string
  192.     {
  193.         return $this->page_media;
  194.     }
  195.     public function setPageMedia(?string $page_media): self
  196.     {
  197.         $this->page_media $page_media;
  198.         return $this;
  199.     }
  200.     public function getServicesTitle(): ?string
  201.     {
  202.         return $this->services_title;
  203.     }
  204.     public function setServicesTitle(?string $services_title): self
  205.     {
  206.         $this->services_title $services_title;
  207.         return $this;
  208.     }
  209.     public function getServicesDescription(): ?string
  210.     {
  211.         return $this->services_description;
  212.     }
  213.     public function setServicesDescription(?string $services_description): self
  214.     {
  215.         $this->services_description $services_description;
  216.         return $this;
  217.     }
  218.     public function getPageVideo(): ?string
  219.     {
  220.         return $this->page_video;
  221.     }
  222.     public function setPageVideo(?string $page_video): self
  223.     {
  224.         $this->page_video $page_video;
  225.         return $this;
  226.     }
  227.     /**
  228.      * @return Collection|PageClientService[]
  229.      */
  230.     public function getPageClientServices(): Collection
  231.     {
  232.         return $this->pageClientServices;
  233.     }
  234.     public function addPageClientService(PageClientService $pageClientService): self
  235.     {
  236.         if (!$this->pageClientServices->contains($pageClientService)) {
  237.             $this->pageClientServices[] = $pageClientService;
  238.             $pageClientService->setSeopageclient($this);
  239.         }
  240.         return $this;
  241.     }
  242.     public function removePageClientService(PageClientService $pageClientService): self
  243.     {
  244.         if ($this->pageClientServices->removeElement($pageClientService)) {
  245.             // set the owning side to null (unless already changed)
  246.             if ($pageClientService->getSeopageclient() === $this) {
  247.                 $pageClientService->setSeopageclient(null);
  248.             }
  249.         }
  250.         return $this;
  251.     }
  252.  /* public function setTmpPageMedia(?File $Tmppagemedia = null): void
  253.     {
  254.         $this->Tmppagemedia = $Tmppagemedia;
  255.         if($Tmppagemedia)
  256.         {
  257.         $this->updatedAt = new \DateTime('now');
  258.         }
  259.     }
  260.     public function getTmpPageMedia() : ?File
  261.     {
  262.         return $this->Tmppagemedia;
  263.     }*/
  264.     public function getUpdatedAt(): ?\DateTimeInterface
  265.     {
  266.         return $this->updatedAt;
  267.     }
  268.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  269.     {
  270.         $this->updatedAt $updatedAt;
  271.         return $this;
  272.     }
  273.     public function getPdfPlaquette(): ?string
  274.     {
  275.         return $this->pdf_plaquette;
  276.     }
  277.     public function setPdfPlaquette(?string $pdf_plaquette): self
  278.     {
  279.         $this->pdf_plaquette $pdf_plaquette;
  280.         return $this;
  281.     }
  282.     public function getType(): ?TypeSeoPage
  283.     {
  284.         return $this->type;
  285.     }
  286.     public function setType(?TypeSeoPage $type): self
  287.     {
  288.         $this->type $type;
  289.         return $this;
  290.     }
  291.     public function getUrl(): ?string
  292.     {
  293.         return $this->url;
  294.     }
  295.     public function setUrl(?string $url): self
  296.     {
  297.         $this->url $url;
  298.         return $this;
  299.     }
  300.     public function getUri(): ?string
  301.     {
  302.         return $this->uri;
  303.     }
  304.     public function setUri(?string $uri): self
  305.     {
  306.         $this->uri $uri;
  307.         return $this;
  308.     }
  309. }