src/Entity/LegalPage.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LegalPageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LegalPageRepository::class)
  7.  */
  8. class LegalPage
  9. {
  10.     const TYPE_MENTIONS   'mentions-legales';
  11.     const TYPE_CGU        'cgu';
  12.     const TYPE_PRIVACY    'politique-de-confidentialite';
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=80, unique=true)
  21.      */
  22.     private $type;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $title;
  27.     /**
  28.      * @ORM\Column(type="text", nullable=true)
  29.      */
  30.     private $content;
  31.     /**
  32.      * @ORM\Column(type="datetime")
  33.      */
  34.     private $updatedAt;
  35.     public function __construct()
  36.     {
  37.         $this->updatedAt = new \DateTime();
  38.     }
  39.     public function getId(): ?int { return $this->id; }
  40.     public function getType(): ?string { return $this->type; }
  41.     public function setType(string $type): self $this->type $type; return $this; }
  42.     public function getTitle(): ?string { return $this->title; }
  43.     public function setTitle(string $title): self $this->title $title; return $this; }
  44.     public function getContent(): ?string { return $this->content; }
  45.     public function setContent(?string $content): self $this->content $content; return $this; }
  46.     public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; }
  47.     public function setUpdatedAt(\DateTime $updatedAt): self $this->updatedAt $updatedAt; return $this; }
  48. }