src/Entity/OffreDeTravail.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OffreDeTravailRepository;
  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(repositoryClassOffreDeTravailRepository::class)]
  9. class OffreDeTravail
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'offreDeTravails')]
  16.     private ?Users $userId null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $titre null;
  19.     
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $description null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $localisation null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?int $remuneration null;
  26.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  27.     private ?\DateTimeInterface $dateDebutMontage null;
  28.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  29.     private ?\DateTimeInterface $dateFinMontage null;
  30.     #[ORM\ManyToOne(inversedBy'offreDeTravails')]
  31.     private ?StatusOffre $status null;
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?int $evaluation null;
  34.     #[ORM\Column(nullabletrue)]
  35.     private ?\DateTimeImmutable $createdAt null;
  36.     #[ORM\Column(nullabletrue)]
  37.     private ?\DateTimeImmutable $updatedAt null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $slug null;
  40.     #[ORM\OneToMany(mappedBy'offre'targetEntityAnnonceImage::class, orphanRemovalfalse)]
  41.     private Collection $images;
  42.     #[ORM\Column(length100nullabletrue)]
  43.     private ?string $furnitureType null;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function __construct()
  49.     {
  50.         $this->images = new ArrayCollection();
  51.     }
  52.     public function getUserId(): ?Users
  53.     {
  54.         return $this->userId;
  55.     }
  56.     public function setUserId(?Users $userId): static
  57.     {
  58.         $this->userId $userId;
  59.         return $this;
  60.     }
  61.     public function getTitre(): ?string
  62.     {
  63.         return $this->titre;
  64.     }
  65.     public function setTitre(?string $titre): static
  66.     {
  67.         $this->titre $titre;
  68.         return $this;
  69.     }
  70.     public function getDescription(): ?string
  71.     {
  72.         return $this->description;
  73.     }
  74.     public function setDescription(?string $description): static
  75.     {
  76.         $this->description $description;
  77.         return $this;
  78.     }
  79.     public function getLocalisation(): ?string
  80.     {
  81.         return $this->localisation;
  82.     }
  83.     public function setLocalisation(?string $localisation): static
  84.     {
  85.         $this->localisation $localisation;
  86.         return $this;
  87.     }
  88.     public function getRemuneration(): ?int
  89.     {
  90.         return $this->remuneration;
  91.     }
  92.     public function setRemuneration(?int $remuneration): static
  93.     {
  94.         $this->remuneration $remuneration;
  95.         return $this;
  96.     }
  97.     public function getDateDebutMontage(): ?\DateTimeInterface
  98.     {
  99.         return $this->dateDebutMontage;
  100.     }
  101.     public function setDateDebutMontage(?\DateTimeInterface $dateDebutMontage): static
  102.     {
  103.         $this->dateDebutMontage $dateDebutMontage;
  104.         return $this;
  105.     }
  106.     public function getDateFinMontage(): ?\DateTimeInterface
  107.     {
  108.         return $this->dateFinMontage;
  109.     }
  110.     public function setDateFinMontage(?\DateTimeInterface $dateFinMontage): static
  111.     {
  112.         $this->dateFinMontage $dateFinMontage;
  113.         return $this;
  114.     }
  115.     public function getStatus(): ?StatusOffre
  116.     {
  117.         return $this->status;
  118.     }
  119.     public function setStatus(?StatusOffre $status): static
  120.     {
  121.         $this->status $status;
  122.         return $this;
  123.     }
  124.     public function getEvaluation(): ?int
  125.     {
  126.         return $this->evaluation;
  127.     }
  128.     public function setEvaluation(?int $evaluation): static
  129.     {
  130.         $this->evaluation $evaluation;
  131.         return $this;
  132.     }
  133.     public function getCreatedAt(): ?\DateTimeImmutable
  134.     {
  135.         return $this->createdAt;
  136.     }
  137.     public function setCreatedAt(?\DateTimeImmutable $createdAt): static
  138.     {
  139.         $this->createdAt $createdAt;
  140.         return $this;
  141.     }
  142.     public function getUpdatedAt(): ?\DateTimeImmutable
  143.     {
  144.         return $this->updatedAt;
  145.     }
  146.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): static
  147.     {
  148.         $this->updatedAt $updatedAt;
  149.         return $this;
  150.     }
  151.     public function getSlug(): ?string
  152.     {
  153.         return $this->slug;
  154.     }
  155.     public function setSlug(?string $slug): static
  156.     {
  157.         $this->slug $slug;
  158.         return $this;
  159.     }
  160.     /** @return Collection<int, AnnonceImage> */
  161.     public function getImages(): Collection { return $this->images; }
  162.     public function getFurnitureType(): ?string
  163.     {
  164.         return $this->furnitureType;
  165.     }
  166.     public function setFurnitureType(?string $furnitureType): static
  167.     {
  168.         $this->furnitureType $furnitureType;
  169.         return $this;
  170.     }
  171. }