src/Entity/DemandeDeTravail.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeDeTravailRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. #[ORM\Entity(repositoryClassDemandeDeTravailRepository::class)]
  9. class DemandeDeTravail
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'demandeDeTravails')]
  16.     private ?Users $userId null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $titre null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $description null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $disponibilite null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?int $salaire null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $zoneAction null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?\DateTimeImmutable $createdAt null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?\DateTimeImmutable $updatedAt null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $slug null;
  33.     #[ORM\OneToMany(mappedBy'demande'targetEntityAnnonceImage::class, orphanRemovalfalse)]
  34.     private Collection $images;
  35.     #[ORM\Column(length100nullabletrue)]
  36.     private ?string $furnitureType null;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function __construct()
  42.     {
  43.         $this->images = new ArrayCollection();
  44.     }
  45.     public function getUserId(): ?Users
  46.     {
  47.         return $this->userId;
  48.     }
  49.     public function setUserId(?Users $userId): static
  50.     {
  51.         $this->userId $userId;
  52.         return $this;
  53.     }
  54.     public function getTitre(): ?string
  55.     {
  56.         return $this->titre;
  57.     }
  58.     public function setTitre(?string $titre): static
  59.     {
  60.         $this->titre $titre;
  61.         return $this;
  62.     }
  63.     public function getDescription(): ?string
  64.     {
  65.         return $this->description;
  66.     }
  67.     public function setDescription(?string $description): static
  68.     {
  69.         $this->description $description;
  70.         return $this;
  71.     }
  72.     public function getDisponibilite(): ?string
  73.     {
  74.         return $this->disponibilite;
  75.     }
  76.     public function setDisponibilite(?string $disponibilite): static
  77.     {
  78.         $this->disponibilite $disponibilite;
  79.         return $this;
  80.     }
  81.     public function getSalaire(): ?int
  82.     {
  83.         return $this->salaire;
  84.     }
  85.     public function setSalaire(?int $salaire): static
  86.     {
  87.         $this->salaire $salaire;
  88.         return $this;
  89.     }
  90.     public function getZoneAction(): ?string
  91.     {
  92.         return $this->zoneAction;
  93.     }
  94.     public function setZoneAction(?string $zoneAction): static
  95.     {
  96.         $this->zoneAction $zoneAction;
  97.         return $this;
  98.     }
  99.     public function getCreatedAt(): ?\DateTimeImmutable
  100.     {
  101.         return $this->createdAt;
  102.     }
  103.     public function setCreatedAt(?\DateTimeImmutable $createdAt): static
  104.     {
  105.         $this->createdAt $createdAt;
  106.         return $this;
  107.     }
  108.     public function getUpdatedAt(): ?\DateTimeImmutable
  109.     {
  110.         return $this->updatedAt;
  111.     }
  112.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): static
  113.     {
  114.         $this->updatedAt $updatedAt;
  115.         return $this;
  116.     }
  117.     public function getSlug(): ?string
  118.     {
  119.         return $this->slug;
  120.     }
  121.     public function setSlug(?string $slug): static
  122.     {
  123.         $this->slug $slug;
  124.         return $this;
  125.     }
  126.     /** @return Collection<int, AnnonceImage> */
  127.     public function getImages(): Collection { return $this->images; }
  128.     public function getFurnitureType(): ?string
  129.     {
  130.         return $this->furnitureType;
  131.     }
  132.     public function setFurnitureType(?string $furnitureType): static
  133.     {
  134.         $this->furnitureType $furnitureType;
  135.         return $this;
  136.     }
  137. }