src/Entity/Managements.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use App\Repository\ManagementsRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\DBAL\Types\Types;
  7. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  8. #[ORM\Entity(repositoryClassManagementsRepository::class)]
  9. class Managements
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id;
  15.     #[ORM\Column(length200uniquetrue)]
  16.     private ?string $theme;
  17.     #[ORM\Column(length100)]
  18.     private ?string $slug;
  19.     #[ORM\Column(length255)]
  20.     private ?string $image;
  21.     #[ORM\Column]
  22.     private ?string $ville;
  23.     #[ORM\Column]
  24.     private ?string $devise;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  26.     private ?\DateTimeInterface $datedebut null;
  27.     
  28.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  29.     private ?DateTimeInterface $datefin null;
  30.     #[ORM\Column]
  31.     private ?string $prix;
  32.     #[ORM\Column]
  33.     private ?string $texte;
  34.     #[ORM\Column(length10)]
  35.     private ?int $adminsid;
  36.     #[ORM\Column]
  37.     private ?\DateTimeImmutable $createdat null;
  38.     #[ORM\Column]
  39.     private ?\DateTimeImmutable $updatedat null;
  40.     public function __construct(){
  41.         $this->createdat = new \DateTimeImmutable();
  42.         $this->updatedat = new \DateTimeImmutable();
  43.     }
  44.     public function getId(): ?int{return $this->id;}
  45.     public function getTheme(): ?string{return $this->theme;}
  46.     public function setTheme(string $theme): static {$this->theme $theme; return $this;}
  47.     public function getSlug(): ?string{return $this->slug;}
  48.     public function setSlug(string $slug): static{$this->slug $slug; return $this;}
  49.     public function getImage(): ?string{ return $this->image;}
  50.     public function setImage(string $image): static{$this->image $image;return $this;}
  51.     public function getVille(): ?string{return $this->ville;}
  52.     public function setVille(string $ville): static{$this->ville $ville;return $this;}
  53.     public function getDevise(): ?string{return $this->devise;}
  54.     public function setDevise(string $devise): static{$this->devise $devise;return $this;}
  55.     public function getPrix(): ?string{return $this->prix;}
  56.     public function setPrix(string $prix): static{$this->prix $prix;return $this;}
  57.     public function getTexte(): ?string{ return $this->texte;}
  58.     public function setTexte(string $texte): static{$this->texte $texte;return $this; }
  59.     public function getDateDebut(): ?\DateTimeInterface  {return $this->datedebut;}
  60.     public function setDateDebut(\DateTimeInterface  $datedebut): static{$this->datedebut $datedebut;return $this;}
  61.     public function getDateFin(): ?\DateTimeInterface  {return $this->datefin;}
  62.     public function setDateFin(\DateTimeInterface  $datefin): static{$this->datefin $datefin;return $this;}
  63.     public function getAdminsId(): ?int{return $this->adminsid;}
  64.     public function setAdminsId(int $adminsid): static{$this->adminsid $adminsid;return $this;}
  65.     
  66.     public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdat;}
  67.     public function setCreatedAt(\DateTimeImmutable $createdat): static {$this->createdat $createdat; return $this;}
  68.     public function getUpdatedAt(): ?\DateTimeImmutable{return $this->updatedat;}
  69.     public function UpdatedAt(\DateTimeImmutable $updatedat): static {$this->updatedat $updatedat;return $this;}
  70. }