<?php
namespace App\Entity;
use DateTimeInterface;
use App\Repository\ManagementsRepository;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\DBAL\Types\Types;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
#[ORM\Entity(repositoryClass: ManagementsRepository::class)]
class Managements
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id;
#[ORM\Column(length: 200, unique: true)]
private ?string $theme;
#[ORM\Column(length: 100)]
private ?string $slug;
#[ORM\Column(length: 255)]
private ?string $image;
#[ORM\Column]
private ?string $ville;
#[ORM\Column]
private ?string $devise;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $datedebut = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?DateTimeInterface $datefin = null;
#[ORM\Column]
private ?string $prix;
#[ORM\Column]
private ?string $texte;
#[ORM\Column(length: 10)]
private ?int $adminsid;
#[ORM\Column]
private ?\DateTimeImmutable $createdat = null;
#[ORM\Column]
private ?\DateTimeImmutable $updatedat = null;
public function __construct(){
$this->createdat = new \DateTimeImmutable();
$this->updatedat = new \DateTimeImmutable();
}
public function getId(): ?int{return $this->id;}
public function getTheme(): ?string{return $this->theme;}
public function setTheme(string $theme): static {$this->theme = $theme; return $this;}
public function getSlug(): ?string{return $this->slug;}
public function setSlug(string $slug): static{$this->slug = $slug; return $this;}
public function getImage(): ?string{ return $this->image;}
public function setImage(string $image): static{$this->image = $image;return $this;}
public function getVille(): ?string{return $this->ville;}
public function setVille(string $ville): static{$this->ville = $ville;return $this;}
public function getDevise(): ?string{return $this->devise;}
public function setDevise(string $devise): static{$this->devise = $devise;return $this;}
public function getPrix(): ?string{return $this->prix;}
public function setPrix(string $prix): static{$this->prix = $prix;return $this;}
public function getTexte(): ?string{ return $this->texte;}
public function setTexte(string $texte): static{$this->texte = $texte;return $this; }
public function getDateDebut(): ?\DateTimeInterface {return $this->datedebut;}
public function setDateDebut(\DateTimeInterface $datedebut): static{$this->datedebut = $datedebut;return $this;}
public function getDateFin(): ?\DateTimeInterface {return $this->datefin;}
public function setDateFin(\DateTimeInterface $datefin): static{$this->datefin = $datefin;return $this;}
public function getAdminsId(): ?int{return $this->adminsid;}
public function setAdminsId(int $adminsid): static{$this->adminsid = $adminsid;return $this;}
public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdat;}
public function setCreatedAt(\DateTimeImmutable $createdat): static {$this->createdat = $createdat; return $this;}
public function getUpdatedAt(): ?\DateTimeImmutable{return $this->updatedat;}
public function UpdatedAt(\DateTimeImmutable $updatedat): static {$this->updatedat = $updatedat;return $this;}
}