<?php
namespace App\Entity;
use App\Repository\DemandeRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DemandeRepository::class)
*/
class Demande
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToMany(targetEntity=Formation::class, mappedBy="demande")
*/
private $formation;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $testentree;
/**
* @ORM\ManyToOne(targetEntity=Formation::class, inversedBy="positionnement")
*/
private $positionnement;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $document;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $demandespecifique;
/**
* @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="demandes")
* @ORM\JoinColumn(nullable=false)
*/
private $tier;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $projet;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $motifrejet;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $orientation;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $daterelance;
/**
* @ORM\ManyToOne(targetEntity=Session::class, inversedBy="demandes")
* @ORM\JoinColumn(nullable=true)
*/
private $session;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $createdat;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $archive;
/**
* @ORM\Column(type="boolean")
*/
private $convertinscrit;
/**
* @ORM\Column(type="boolean")
*/
private $isdelete;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $action;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $actiondate;
/**
* @ORM\ManyToOne(targetEntity=Site::class)
*/
private $site;
public function __construct()
{
$this->formation = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
/**
* @return Collection<int, Formation>
*/
public function getFormation(): Collection
{
return $this->formation;
}
public function addFormation(Formation $formation): self
{
if (!$this->formation->contains($formation)) {
$this->formation[] = $formation;
$formation->setDemande($this);
}
return $this;
}
public function removeFormation(Formation $formation): self
{
if ($this->formation->removeElement($formation)) {
// set the owning side to null (unless already changed)
if ($formation->getDemande() === $this) {
$formation->setDemande(null);
}
}
return $this;
}
public function isTestentree(): ?bool
{
return $this->testentree;
}
public function setTestentree(bool $testentree): self
{
$this->testentree = $testentree;
return $this;
}
public function getPositionnement(): ?Formation
{
return $this->positionnement;
}
public function setPositionnement(?Formation $positionnement): self
{
$this->positionnement = $positionnement;
return $this;
}
public function isDocument(): ?bool
{
return $this->document;
}
public function setDocument(bool $document): self
{
$this->document = $document;
return $this;
}
public function getDemandespecifique(): ?string
{
return $this->demandespecifique;
}
public function setDemandespecifique(?string $demandespecifique): self
{
$this->demandespecifique = $demandespecifique;
return $this;
}
public function getTier(): ?Tier
{
return $this->tier;
}
public function setTier(?Tier $tier): self
{
$this->tier = $tier;
return $this;
}
public function isProjet(): ?bool
{
return $this->projet;
}
public function setProjet(?bool $projet): self
{
$this->projet = $projet;
return $this;
}
public function getMotifrejet(): ?string
{
return $this->motifrejet;
}
public function setMotifrejet(?string $motifrejet): self
{
$this->motifrejet = $motifrejet;
return $this;
}
public function getOrientation(): ?string
{
return $this->orientation;
}
public function setOrientation(?string $orientation): self
{
$this->orientation = $orientation;
return $this;
}
public function getDaterelance(): ?\DateTime
{
return $this->daterelance;
}
public function setDaterelance(?\DateTime $daterelance): self
{
$this->daterelance = $daterelance;
return $this;
}
public function getSession(): ?Session
{
return $this->session;
}
public function setSession(?Session $session): self
{
$this->session = $session;
return $this;
}
public function getCreatedat(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedat(?\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function isArchive(): ?bool
{
return $this->archive;
}
public function setArchive(?bool $archive): self
{
$this->archive = $archive;
return $this;
}
public function isConvertinscrit(): ?bool
{
return $this->convertinscrit;
}
public function setConvertinscrit(?bool $convertinscrit): self
{
$this->convertinscrit = $convertinscrit;
return $this;
}
public function isIsdelete(): ?bool
{
return $this->isdelete;
}
public function setIsdelete(bool $isdelete): self
{
$this->isdelete = $isdelete;
return $this;
}
public function getAction(): ?string
{
return $this->action;
}
public function setAction(?string $action): self
{
$this->action = $action;
return $this;
}
public function getActiondate(): ?string
{
return $this->actiondate;
}
public function setActiondate(?string $actiondate): self
{
$this->actiondate = $actiondate;
return $this;
}
public function getSite(): ?Site
{
return $this->site;
}
public function setSite(?Site $site): self
{
$this->site = $site;
return $this;
}
}