src/Entity/PageClientService.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PageClientServiceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPageClientServiceRepository::class)]
  6. class PageClientService
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'text'nullabletrue)]
  13.     private $titre;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private $description;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $logo;
  18.     #[ORM\ManyToOne(targetEntitySeoPageClient::class, inversedBy'pageClientServices')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private $seopageclient;
  21.     #[ORM\Column(type'datetime'nullabletrue)]
  22.     private $updatedAt;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getTitre(): ?string
  28.     {
  29.         return $this->titre;
  30.     }
  31.     public function setTitre(?string $titre): self
  32.     {
  33.         $this->titre $titre;
  34.         return $this;
  35.     }
  36.     public function getDescription(): ?string
  37.     {
  38.         return $this->description;
  39.     }
  40.     public function setDescription(string $description): self
  41.     {
  42.         $this->description $description;
  43.         return $this;
  44.     }
  45.     public function getLogo(): ?string
  46.     {
  47.         return $this->logo;
  48.     }
  49.     public function setLogo(?string $logo): self
  50.     {
  51.         $this->logo $logo;
  52.         return $this;
  53.     }
  54.     public function getSeopageclient(): ?SeoPageClient
  55.     {
  56.         return $this->seopageclient;
  57.     }
  58.     public function setSeopageclient(?SeoPageClient $seopageclient): self
  59.     {
  60.         $this->seopageclient $seopageclient;
  61.         return $this;
  62.     }
  63.    /*
  64.       public function setTmpLogo(?File $tmpLogo = null): void
  65.     {
  66.         $this->tmpLogo = $tmpLogo;
  67.         if($tmpLogo)
  68.         $this->updatedAt = new \DateTime('now');
  69.     }
  70.     public function getTmpLogo() : ?File
  71.     {
  72.         return $this->tmpLogo;
  73.     }
  74. */
  75.     public function getUpdatedAt(): ?\DateTimeInterface
  76.     {
  77.         return $this->updatedAt;
  78.     }
  79.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  80.     {
  81.         $this->updatedAt $updatedAt;
  82.         return $this;
  83.     }
  84. }