<?php
namespace App\Entity;
use App\Repository\AffiliateRequestRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: AffiliateRequestRepository::class)]
class AffiliateRequest
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'datetime')]
#[Assert\NotNull(message: "La date ne doit pas ĂȘtre vide.")]
private $date;
#[ORM\ManyToOne(targetEntity: Affiliate::class, inversedBy: 'affiliateRequests')]
private $affiliate;
#[ORM\Column(type: 'string', length: 255)]
#[Assert\NotNull(message: "Le nom du prospect ne doit pas ĂȘtre vide.")]
private $nameProspect;
#[ORM\Column(type: 'string', length: 255)]
private $status;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getAffiliate(): ?Affiliate
{
return $this->affiliate;
}
public function setAffiliate(?Affiliate $affiliate): self
{
$this->affiliate = $affiliate;
return $this;
}
public function getNameProspect(): ?string
{
return $this->nameProspect;
}
public function setNameProspect(string $nameProspect): self
{
$this->nameProspect = $nameProspect;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
}