src/Entity/Demande.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=DemandeRepository::class)
  9.  */
  10. class Demande
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\OneToMany(targetEntity=Formation::class, mappedBy="demande")
  20.      */
  21.     private $formation;
  22.     /**
  23.      * @ORM\Column(type="boolean", nullable=true)
  24.      */
  25.     private $testentree;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Formation::class, inversedBy="positionnement")
  28.      */
  29.     private $positionnement;
  30.     /**
  31.      * @ORM\Column(type="boolean", nullable=true)
  32.      */
  33.     private $document;
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $demandespecifique;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="demandes")
  40.      * @ORM\JoinColumn(nullable=false)
  41.      */
  42.     private $tier;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private $projet;
  47.     /**
  48.      * @ORM\Column(type="text", nullable=true)
  49.      */
  50.     private $motifrejet;
  51.     /**
  52.      * @ORM\Column(type="text", nullable=true)
  53.      */
  54.     private $orientation;
  55.     /**
  56.      * @ORM\Column(type="date", nullable=true)
  57.      */
  58.     private $daterelance;
  59.     /**
  60.      * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="demandes")
  61.      * @ORM\JoinColumn(nullable=true)
  62.      */
  63.     private $session;
  64.     /**
  65.      * @ORM\Column(type="date", nullable=true)
  66.      */
  67.     private $createdat;
  68.     /**
  69.      * @ORM\Column(type="boolean", nullable=true)
  70.      */
  71.     private $archive;
  72.     /**
  73.      * @ORM\Column(type="boolean")
  74.      */
  75.     private $convertinscrit;
  76.     /**
  77.      * @ORM\Column(type="boolean")
  78.      */
  79.     private $isdelete;
  80.     /**
  81.      * @ORM\Column(type="text", nullable=true)
  82.      */
  83.     private $action;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $actiondate;
  88.     /**
  89.      * @ORM\ManyToOne(targetEntity=Site::class)
  90.      */
  91.     private $site;
  92.     public function __construct()
  93.     {
  94.         $this->formation = new ArrayCollection();
  95.     }
  96.     public function getId(): ?int
  97.     {
  98.         return $this->id;
  99.     }
  100.     /**
  101.      * @return Collection<int, Formation>
  102.      */
  103.     public function getFormation(): Collection
  104.     {
  105.         return $this->formation;
  106.     }
  107.     public function addFormation(Formation $formation): self
  108.     {
  109.         if (!$this->formation->contains($formation)) {
  110.             $this->formation[] = $formation;
  111.             $formation->setDemande($this);
  112.         }
  113.         return $this;
  114.     }
  115.     public function removeFormation(Formation $formation): self
  116.     {
  117.         if ($this->formation->removeElement($formation)) {
  118.             // set the owning side to null (unless already changed)
  119.             if ($formation->getDemande() === $this) {
  120.                 $formation->setDemande(null);
  121.             }
  122.         }
  123.         return $this;
  124.     }
  125.     public function isTestentree(): ?bool
  126.     {
  127.         return $this->testentree;
  128.     }
  129.     public function setTestentree(bool $testentree): self
  130.     {
  131.         $this->testentree $testentree;
  132.         return $this;
  133.     }
  134.     public function getPositionnement(): ?Formation
  135.     {
  136.         return $this->positionnement;
  137.     }
  138.     public function setPositionnement(?Formation $positionnement): self
  139.     {
  140.         $this->positionnement $positionnement;
  141.         return $this;
  142.     }
  143.     public function isDocument(): ?bool
  144.     {
  145.         return $this->document;
  146.     }
  147.     public function setDocument(bool $document): self
  148.     {
  149.         $this->document $document;
  150.         return $this;
  151.     }
  152.     public function getDemandespecifique(): ?string
  153.     {
  154.         return $this->demandespecifique;
  155.     }
  156.     public function setDemandespecifique(?string $demandespecifique): self
  157.     {
  158.         $this->demandespecifique $demandespecifique;
  159.         return $this;
  160.     }
  161.     public function getTier(): ?Tier
  162.     {
  163.         return $this->tier;
  164.     }
  165.     public function setTier(?Tier $tier): self
  166.     {
  167.         $this->tier $tier;
  168.         return $this;
  169.     }
  170.     public function isProjet(): ?bool
  171.     {
  172.         return $this->projet;
  173.     }
  174.     public function setProjet(?bool $projet): self
  175.     {
  176.         $this->projet $projet;
  177.         return $this;
  178.     }
  179.     public function getMotifrejet(): ?string
  180.     {
  181.         return $this->motifrejet;
  182.     }
  183.     public function setMotifrejet(?string $motifrejet): self
  184.     {
  185.         $this->motifrejet $motifrejet;
  186.         return $this;
  187.     }
  188.     public function getOrientation(): ?string
  189.     {
  190.         return $this->orientation;
  191.     }
  192.     public function setOrientation(?string $orientation): self
  193.     {
  194.         $this->orientation $orientation;
  195.         return $this;
  196.     }
  197.     public function getDaterelance(): ?\DateTime
  198.     {
  199.         return $this->daterelance;
  200.     }
  201.     public function setDaterelance(?\DateTime $daterelance): self
  202.     {
  203.         $this->daterelance $daterelance;
  204.         return $this;
  205.     }
  206.     public function getSession(): ?Session
  207.     {
  208.         return $this->session;
  209.     }
  210.     public function setSession(?Session $session): self
  211.     {
  212.         $this->session $session;
  213.         return $this;
  214.     }
  215.     public function getCreatedat(): ?\DateTimeInterface
  216.     {
  217.         return $this->createdat;
  218.     }
  219.     public function setCreatedat(?\DateTimeInterface $createdat): self
  220.     {
  221.         $this->createdat $createdat;
  222.         return $this;
  223.     }
  224.     public function isArchive(): ?bool
  225.     {
  226.         return $this->archive;
  227.     }
  228.     public function setArchive(?bool $archive): self
  229.     {
  230.         $this->archive $archive;
  231.         return $this;
  232.     }
  233.     public function isConvertinscrit(): ?bool
  234.     {
  235.         return $this->convertinscrit;
  236.     }
  237.     public function setConvertinscrit(?bool $convertinscrit): self
  238.     {
  239.         $this->convertinscrit $convertinscrit;
  240.         return $this;
  241.     }
  242.     public function isIsdelete(): ?bool
  243.     {
  244.         return $this->isdelete;
  245.     }
  246.     public function setIsdelete(bool $isdelete): self
  247.     {
  248.         $this->isdelete $isdelete;
  249.         return $this;
  250.     }
  251.     public function getAction(): ?string
  252.     {
  253.         return $this->action;
  254.     }
  255.     public function setAction(?string $action): self
  256.     {
  257.         $this->action $action;
  258.         return $this;
  259.     }
  260.     public function getActiondate(): ?string
  261.     {
  262.         return $this->actiondate;
  263.     }
  264.     public function setActiondate(?string $actiondate): self
  265.     {
  266.         $this->actiondate $actiondate;
  267.         return $this;
  268.     }
  269.     public function getSite(): ?Site
  270.     {
  271.         return $this->site;
  272.     }
  273.     public function setSite(?Site $site): self
  274.     {
  275.         $this->site $site;
  276.         return $this;
  277.     }
  278.    
  279. }