src/Entity/Formation.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormationRepository;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassFormationRepository::class)]
  9. class Formation
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nomFormation '';
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $dureeFormation '';
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $timesheet '';
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $linkType null;
  23.     #[ORM\Column(length255,nullabletrue)]
  24.     private ?string $lienFormation '';
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $lieuFormation '';
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $formationAddress '';
  29.     #[ORM\Column(length255,nullabletrue)]
  30.     private ?string $lieuSignature '';
  31.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  32.     private ?string $objective '';
  33.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  34.     private ?string $infoTrainees '';
  35.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  36.     private ?string $infoCustomer '';
  37.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  38.     private ?string $infoFormateur '';
  39.     #[ORM\Column(length255,nullabletrue)]
  40.     private ?string $pdfFormation '';
  41.     #[ORM\ManyToOne(targetEntityLink::class, inversedBy"formations")]
  42.     private ?Link $linkToProgram null;
  43.     #[ORM\ManyToOne(targetEntityLink::class, inversedBy"formations")]
  44.     private ?Link $linkToLivretAccueil null;
  45.     #[ORM\ManyToOne(targetEntityLink::class, inversedBy"formations")]
  46.     private ?Link $linkGuide null;
  47.     #[ORM\ManyToOne(targetEntityLink::class, inversedBy"formations")]
  48.     private ?Link $linkFormulaire null;
  49.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy"formations")]
  50.     private ?User $formateur;
  51.     #[ORM\ManyToMany(targetEntityCustomer::class, inversedBy"formations",cascade: ['persist''remove'])]
  52.     private ?Collection $customers;
  53.     #[ORM\ManyToOne(targetEntityFinancier::class, inversedBy"formations")]
  54.     private ?Financier $financier;
  55.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  56.     private ?\DateTimeInterface $dateDebutFormation null;
  57.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  58.     private ?\DateTimeInterface $dateFinFormation null;
  59.     #[ORM\ManyToOne(targetEntityLink::class, inversedBy"formations")]
  60.     private ?Link $linkformateur null;
  61.     #[ORM\Column]
  62.     private ?int $status 0;
  63.     #[ORM\Column(length255,nullabletrue)]
  64.     private ?string $type "";
  65.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  66.     private ?string $mailFormateurText '';
  67.     #[ORM\Column(length255nullabletrue)]
  68.     private ?string $linkDrive null;
  69.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  70.     private ?string $otherLink '';
  71.     public function __construct()
  72.     {
  73.         $this->customers = new ArrayCollection();
  74.     }
  75.     public function getId(): ?int
  76.     {
  77.         return $this->id;
  78.     }
  79.     public function getNomFormation(): ?string
  80.     {
  81.         return $this->nomFormation;
  82.     }
  83.     public function setNomFormation(string $nomFormation): self
  84.     {
  85.         $this->nomFormation $nomFormation;
  86.         return $this;
  87.     }
  88.     public function getDureeFormation(): ?string
  89.     {
  90.         return $this->dureeFormation;
  91.     }
  92.     public function setDureeFormation(string $dureeFormation): self
  93.     {
  94.         $this->dureeFormation $dureeFormation;
  95.         return $this;
  96.     }
  97.     public function getLinkType(): ?string
  98.     {
  99.         return $this->linkType;
  100.     }
  101.     public function setLinkType(string $linkType): self
  102.     {
  103.         $this->linkType $linkType;
  104.         return $this;
  105.     }
  106.     public function getLienFormation(): ?string
  107.     {
  108.         return $this->lienFormation;
  109.     }
  110.     public function setLienFormation(string $lienFormation): self
  111.     {
  112.         $this->lienFormation $lienFormation;
  113.         return $this;
  114.     }
  115.     public function getLieuFormation(): ?string
  116.     {
  117.         return $this->lieuFormation;
  118.     }
  119.     public function setLieuFormation(string $lieuFormation): self
  120.     {
  121.         $this->lieuFormation $lieuFormation;
  122.         return $this;
  123.     }
  124.     public function getPdfFormation(): ?string
  125.     {
  126.         return $this->pdfFormation;
  127.     }
  128.     public function setPdfFormation(string $pdfFormation): self
  129.     {
  130.         $this->pdfFormation $pdfFormation;
  131.         return $this;
  132.     }
  133.     public function getFormateur(): ?User
  134.     {
  135.         return $this->formateur;
  136.     }
  137.     public function setFormateur(?User $formateur): self
  138.     {
  139.         $this->formateur $formateur;
  140.         return $this;
  141.     }
  142.     public function getDateDebutFormation(): ?\DateTimeInterface
  143.     {
  144.         return $this->dateDebutFormation;
  145.     }
  146.     public function setDateDebutFormation(?\DateTimeInterface $dateDebutFormation): self
  147.     {
  148.         $this->dateDebutFormation $dateDebutFormation;
  149.         return $this;
  150.     }
  151.     public function getDateFinFormation(): ?\DateTimeInterface
  152.     {
  153.         return $this->dateFinFormation;
  154.     }
  155.     public function setDateFinFormation(?\DateTimeInterface $dateFinFormation): self
  156.     {
  157.         $this->dateFinFormation $dateFinFormation;
  158.         return $this;
  159.     }
  160.     public function getTimesheet(): ?string
  161.     {
  162.         return $this->timesheet;
  163.     }
  164.     public function setTimesheet(string $timesheet): self
  165.     {
  166.         $this->timesheet $timesheet;
  167.         return $this;
  168.     }
  169.     public function getFormationAddress(): ?string
  170.     {
  171.         return $this->formationAddress;
  172.     }
  173.     public function setFormationAddress(string $formationAddress): self
  174.     {
  175.         $this->formationAddress $formationAddress;
  176.         return $this;
  177.     }
  178.     public function getLieuSignature(): ?string
  179.     {
  180.         return $this->lieuSignature;
  181.     }
  182.     public function setLieuSignature(string $lieuSignature): self
  183.     {
  184.         $this->lieuSignature $lieuSignature;
  185.         return $this;
  186.     }
  187.     public function getObjective(): ?string
  188.     {
  189.         return $this->objective;
  190.     }
  191.     public function setObjective(string $objective): self
  192.     {
  193.         $this->objective $objective;
  194.         return $this;
  195.     }
  196.     public function getInfoFormateur(): ?string
  197.     {
  198.         return $this->infoFormateur;
  199.     }
  200.     public function setInfoFormateur(string $infoFormateur): self
  201.     {
  202.         $this->infoFormateur $infoFormateur;
  203.         return $this;
  204.     }
  205.     public function getInfoCustomer(): ?string
  206.     {
  207.         return $this->infoCustomer;
  208.     }
  209.     public function setInfoCustomer(string $infoCustomer): self
  210.     {
  211.         $this->infoCustomer $infoCustomer;
  212.         return $this;
  213.     }
  214.     public function getInfoTrainees(): ?string
  215.     {
  216.         return $this->infoTrainees;
  217.     }
  218.     public function setInfoTrainees(string $infoTrainees): self
  219.     {
  220.         $this->infoTrainees $infoTrainees;
  221.         return $this;
  222.     }
  223.     public function getLinkToProgram(): ?Link
  224.     {
  225.         return $this->linkToProgram;
  226.     }
  227.     public function setLinkToProgram(?Link $linkToProgram): self
  228.     {
  229.         $this->linkToProgram$linkToProgram;
  230.         return $this;
  231.     }
  232.     public function getLinkToLivretAccueil(): ?Link
  233.     {
  234.         return $this->linkToLivretAccueil;
  235.     }
  236.     public function setLinkToLivretAccueil(?Link $linkToLivretAccueil): self
  237.     {
  238.         $this->linkToLivretAccueil $linkToLivretAccueil;
  239.         return $this;
  240.     }
  241.     public function getLinkGuide(): ?Link
  242.     {
  243.         return $this->linkGuide;
  244.     }
  245.     public function setLinkGuide(?Link $linkGuide): self
  246.     {
  247.         $this->linkGuide $linkGuide;
  248.         return $this;
  249.     }
  250.     public function getLinkFormulaire(): ?Link
  251.     {
  252.         return $this->linkFormulaire;
  253.     }
  254.     public function setLinkFormulaire(?Link $linkFormulaire): self
  255.     {
  256.         $this->linkFormulaire $linkFormulaire;
  257.         return $this;
  258.     }
  259.     public function getCustomers(): Collection
  260.     {
  261.         return $this->customers;
  262.     }
  263.     public function addCustomer(Customer $customer): self
  264.     {
  265.         if (!$this->customers->contains($customer)) {
  266.             $this->customers[] = $customer;
  267.         }
  268.         return $this;
  269.     }
  270.     public function removeCustomer(Customer $customer): self
  271.     {
  272.         $this->customers->removeElement($customer);
  273.         return $this;
  274.     }
  275.     public function getFinancier(): ?Financier
  276.     {
  277.         return $this->financier;
  278.     }
  279.     public function setFinancier(?Financier $financier): self
  280.     {
  281.         $this->financier $financier;
  282.         return $this;
  283.     }
  284.     public function getLinkFormateur(): ?Link
  285.     {
  286.         return $this->linkformateur;
  287.     }
  288.     public function setLinkformateur(?Link $linkformateur): self
  289.     {
  290.         $this->linkformateur $linkformateur;
  291.         return $this;
  292.     }
  293.     public function getStatus(): ?int
  294.     {
  295.         return $this->status;
  296.     }
  297.     /**
  298.      * @param int $status
  299.      * @return $this
  300.      */
  301.     public function setStatus(int $status): self
  302.     {
  303.         $this->status $status;
  304.         return $this;
  305.     }
  306.     public function getMailFormateurText(): ?string
  307.     {
  308.         return $this->mailFormateurText;
  309.     }
  310.     public function setMailFormateurText(string $mailFormateurText): self
  311.     {
  312.         $this->mailFormateurText $mailFormateurText;
  313.         return $this;
  314.     }
  315.     public function getType(): ?string
  316.     {
  317.         return $this->type;
  318.     }
  319.     public function setType(string $type): self
  320.     {
  321.         $this->type $type;
  322.         return $this;
  323.     }
  324.     public function getLinkDrive(): ?string
  325.     {
  326.         return $this->linkDrive;
  327.     }
  328.     public function setLinkDrive(string $linkDrive): self
  329.     {
  330.         $this->linkDrive $linkDrive;
  331.         return $this;
  332.     }
  333.     public function getOtherLink(): ?string
  334.     {
  335.         return $this->otherLink;
  336.     }
  337.     public function setOtherLink(?string $otherLink): self
  338.     {
  339.         $this->otherLink $otherLink;
  340.         return $this;
  341.     }
  342. }