<?php
namespace App\Entity;
use App\Repository\DemandeDevisSiteRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DemandeDevisSiteRepository::class)
*/
class DemandeDevisSite
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50)
*/
private $statut;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255)
*/
private $prenom;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $debut;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fin;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\ManyToMany(targetEntity=Formation::class, inversedBy="demandeDevisSites")
*/
private $formation;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nombreStagiaire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nomEntreprise;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $traiter;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
public function __construct()
{
$this->formation = new ArrayCollection();
}
public function __toString()
{
return $this->getNomEntreprise();
}
public function getId(): ?int
{
return $this->id;
}
public function getStatut(): ?string
{
return $this->statut;
}
public function setStatut(string $statut): self
{
$this->statut = $statut;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getDebut(): ?\DateTimeInterface
{
return $this->debut;
}
public function setDebut(?\DateTimeInterface $debut): self
{
$this->debut = $debut;
return $this;
}
public function getFin(): ?\DateTimeInterface
{
return $this->fin;
}
public function setFin(?\DateTimeInterface $fin): self
{
$this->fin = $fin;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
/**
* @return Collection<int, Formation>
*/
public function getFormation(): Collection
{
return $this->formation;
}
public function addFormation(Formation $formation, ?int $nombreStagiaire = null): self
{
if (!$this->formation->contains($formation)) {
$this->formation[] = $formation;
}
$this->setNombreStagiaire($nombreStagiaire);
return $this;
}
public function removeFormation(Formation $formation): self
{
$this->formation->removeElement($formation);
return $this;
}
public function getNombreStagiaire(): ?int
{
return $this->nombreStagiaire;
}
public function setNombreStagiaire(?int $nombreStagiaire): self
{
$this->nombreStagiaire = $nombreStagiaire;
return $this;
}
public function getNomEntreprise(): ?string
{
return $this->nomEntreprise;
}
public function setNomEntreprise(?string $nomEntreprise): self
{
$this->nomEntreprise = $nomEntreprise;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function isTraiter(): ?bool
{
return $this->traiter;
}
public function setTraiter(?bool $traiter): self
{
$this->traiter = $traiter;
return $this;
}
public function getCreatedAt(): ?\DateTime
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTime $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}