src/Entity/AffiliateRequest.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AffiliateRequestRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. #[ORM\Entity(repositoryClassAffiliateRequestRepository::class)]
  7. class AffiliateRequest
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'datetime')]
  14.     #[Assert\NotNull(message"La date ne doit pas ĂȘtre vide.")]
  15.     private $date;
  16.     #[ORM\ManyToOne(targetEntityAffiliate::class, inversedBy'affiliateRequests')]
  17.     private $affiliate;
  18.     #[ORM\Column(type'string'length255)]
  19.     #[Assert\NotNull(message"Le nom du prospect ne doit pas ĂȘtre vide.")]
  20.     private $nameProspect;
  21.     #[ORM\Column(type'string'length255)]
  22.     private $status;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getDate(): ?\DateTimeInterface
  28.     {
  29.         return $this->date;
  30.     }
  31.     public function setDate(?\DateTimeInterface $date): self
  32.     {
  33.         $this->date $date;
  34.         return $this;
  35.     }
  36.     public function getAffiliate(): ?Affiliate
  37.     {
  38.         return $this->affiliate;
  39.     }
  40.     public function setAffiliate(?Affiliate $affiliate): self
  41.     {
  42.         $this->affiliate $affiliate;
  43.         return $this;
  44.     }
  45.     public function getNameProspect(): ?string
  46.     {
  47.         return $this->nameProspect;
  48.     }
  49.     public function setNameProspect(string $nameProspect): self
  50.     {
  51.         $this->nameProspect $nameProspect;
  52.         return $this;
  53.     }
  54.     public function getStatus(): ?string
  55.     {
  56.         return $this->status;
  57.     }
  58.     public function setStatus(string $status): self
  59.     {
  60.         $this->status $status;
  61.         return $this;
  62.     }
  63. }