src/Entity/Trainings.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TrainingsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTrainingsRepository::class)]
  8. class Trainings
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private int $id;
  14.     #[ORM\Column(type'text')]
  15.     private string $title;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private ?string $subTitle;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private ?string $code;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private ?bool $cutInBlocks;
  22.     #[ORM\ManyToMany(targetEntityDomain::class, inversedBy'trainings')]
  23.     private Collection $domain;
  24.     #[ORM\ManyToMany(targetEntitySubDomain::class, inversedBy'trainings')]
  25.     private Collection $subDomain;
  26.     #[ORM\ManyToMany(targetEntityKeywords::class, inversedBy'trainings')]
  27.     private ?Collection $keywords;
  28.     #[ORM\ManyToOne(targetEntityType::class, inversedBy'trainings')]
  29.     private ?Type $type;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private ?bool $new;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private ?string $customizable;
  34.     #[ORM\Column(type'text'nullabletrue)]
  35.     private  ?string $objectives;
  36.     #[ORM\Column(type'text'nullabletrue)]
  37.     private ?string $complementaryObjectives;
  38.     #[ORM\Column(type'text'nullabletrue)]
  39.     private ?string $pedagogicContent;
  40.     #[ORM\Column(type'text'nullabletrue)]
  41.     private ?string $pluses;
  42.     #[ORM\Column(type'text'nullabletrue)]
  43.     private ?string $concernedPersons;
  44.     #[ORM\Column(type'text'nullabletrue)]
  45.     private ?string $prerequisites;
  46.     #[ORM\Column(type'text'nullabletrue)]
  47.     private ?string $price;
  48.     #[ORM\Column(type'text'nullabletrue)]
  49.     private ?string $time;
  50.     #[ORM\Column(type'text'nullabletrue)]
  51.     private ?string $date;
  52.     #[ORM\Column(type'text'nullabletrue)]
  53.     private ?string $place;
  54.     #[ORM\ManyToMany(targetEntityDeviceAndTraining::class, inversedBy'trainings')]
  55.     private ?Collection $deviceAndTraining;
  56.     #[ORM\Column(type'text'nullabletrue)]
  57.     private ?string $termsOfAccess;
  58.     #[ORM\Column(type'text'nullabletrue)]
  59.     private ?string $alternatingRythm;
  60.     #[ORM\Column(type'text'nullabletrue)]
  61.     private ?string $teachingMethods;
  62.     #[ORM\Column(type'text'nullabletrue)]
  63.     private ?string $teachingMeans;
  64.     #[ORM\ManyToOne(targetEntityCertificationType::class, inversedBy'trainings')]
  65.     private ?CertificationType $certificationType;
  66.     #[ORM\Column(type'text'nullabletrue)]
  67.     private ?string $educationLevel;
  68.     #[ORM\Column(type'integer'nullabletrue)]
  69.     private ?int $trainingOrder;
  70.     #[ORM\Column(type'text'nullabletrue)]
  71.     private ?string $certificationName;
  72.     #[ORM\Column(type'text'nullabletrue)]
  73.     private ?string $assessmentMethods;
  74.     #[ORM\Column(type'text'nullabletrue)]
  75.     private ?string $targetFunctions;
  76.     #[ORM\Column(type'text'nullabletrue)]
  77.     private ?string $continuingStudies;
  78.     #[ORM\Column(type'integer'nullabletrue)]
  79.     private ?int $disabledAccessibility;
  80.     #[ORM\ManyToMany(targetEntityUser::class, inversedBy'trainingsPedagogicals')]
  81.     private ?Collection $pedagogicalReferent;
  82.     #[ORM\ManyToMany(targetEntityUser::class, inversedBy'trainingsPedagogicals')]
  83.     #[ORM\JoinTable(name'commercials_trainings')]
  84.     private ?Collection $commercials;
  85.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'trainings')]
  86.     private ?User $owner;
  87.     #[ORM\Column(type'text'nullabletrue)]
  88.     private ?string $testimonials;
  89.     #[ORM\Column(type'text'nullabletrue)]
  90.     private ?string $accessibilityText;
  91.     #[ORM\Column(type'date'nullabletrue)]
  92.     private ?\DateTime $creationDate;
  93.     #[ORM\Column(type'date'nullabletrue)]
  94.     private ?\DateTime $editDate;
  95.     #[ORM\Column(type'boolean'nullabletrue)]
  96.     private ?bool $logoDisplay;
  97.     #[ORM\Column(type'integer'nullabletrue)]
  98.     private ?bool $whichPublic;
  99.     #[ORM\OneToMany(mappedBy'trainings'targetEntitySessions::class, cascade: ['persist'])]
  100.     private ?Collection $sessions;
  101.     #[ORM\Column(type'boolean'nullabletrue)]
  102.     private ?bool $published;
  103.     #[ORM\Column(type'boolean'nullablefalseoptions: ["default" => 0])]
  104.     private ?bool $isFiche;
  105.     #[ORM\Column(type'text'nullabletrue)]
  106.     private ?string $slug;
  107.     #[ORM\ManyToOne(targetEntityTrainingPlace::class, inversedBy'trainings')]
  108.     private ?TrainingPlace $trainingPlace;
  109.     #[ORM\Column(type'string'length255nullabletrue)]
  110.     private ?string $ficheTitle;
  111.     #[ORM\ManyToMany(targetEntityself::class)]
  112.     private ?Collection $linkedTrainings;
  113.     #[ORM\Column(type'text'nullabletrue)]
  114.     private ?string $traineeOrEnterprise;
  115.     #[ORM\Column(type'date'nullabletrue)]
  116.     private ?\DateTimeInterface $validityDate;
  117.     #[ORM\OneToMany(mappedBy'training'targetEntitySubDomainOrder::class, orphanRemovaltrue)]
  118.     private Collection $subDomainOrders;
  119.     #[ORM\Column(type'string'length255nullabletrue)]
  120.     private ?string $linkVideo;
  121.     #[ORM\Column(type'string'length255nullabletrue)]
  122.     private $rncpOrRs;
  123.     #[ORM\Column(type'integer'nullabletrue)]
  124.     private $days;
  125.     #[ORM\Column(type'integer'nullabletrue)]
  126.     private $hours;
  127.     #[ORM\Column(type'text'nullabletrue)]
  128.     private $companyMissions;
  129.     #[ORM\ManyToOne(targetEntityEducationLevel::class, inversedBy'trainings')]
  130.     private $educationLevelName;
  131.     #[ORM\ManyToOne(targetEntityPublicType::class, inversedBy'trainings')]
  132.     private $publicType;
  133.     #[ORM\Column(type'datetime'nullabletrue)]
  134.     private $validityDateRncp;
  135.     #[ORM\Column(type'boolean'nullabletrue)]
  136.     private $resetDate;
  137.     public function __construct()
  138.     {
  139.         $this->domain = new ArrayCollection();
  140.         $this->subDomain = new ArrayCollection();
  141.         $this->keywords = new ArrayCollection();
  142.         $this->deviceAndTraining = new ArrayCollection();
  143.         $this->pedagogicalReferent = new ArrayCollection();
  144.         $this->commercials = new ArrayCollection();
  145.         $this->sessions = new ArrayCollection();
  146.         $this->linkedTrainings = new ArrayCollection();
  147.         $this->subDomainOrders = new ArrayCollection();
  148.         $this->validityDateRncp null;
  149.     }
  150.     public function getId(): ?int
  151.     {
  152.         return $this->id;
  153.     }
  154.     public function getTitle(): ?string
  155.     {
  156.         return $this->title;
  157.     }
  158.     public function setTitle(string $title): self
  159.     {
  160.         $this->title $title;
  161.         return $this;
  162.     }
  163.     public function getSubTitle(): ?string
  164.     {
  165.         return $this->subTitle;
  166.     }
  167.     public function setSubTitle(?string $subTitle): self
  168.     {
  169.         $this->subTitle $subTitle;
  170.         return $this;
  171.     }
  172.     public function getCode(): ?string
  173.     {
  174.         return $this->code;
  175.     }
  176.     public function setCode(?string $code): self
  177.     {
  178.         $this->code $code;
  179.         return $this;
  180.     }
  181.     public function isCutInBlocks(): ?bool
  182.     {
  183.         return $this->cutInBlocks;
  184.     }
  185.     public function setCutInBlocks(?bool $cutInBlocks): self
  186.     {
  187.         $this->cutInBlocks $cutInBlocks;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, Domain>
  192.      */
  193.     public function getDomain(): Collection
  194.     {
  195.         return $this->domain;
  196.     }
  197.     public function addDomain(Domain $domain): self
  198.     {
  199.         if (!$this->domain->contains($domain)) {
  200.             $this->domain[] = $domain;
  201.             $domain->addTraining($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeDomain(Domain $domain): self
  206.     {
  207.         if ($this->domain->removeElement($domain)) {
  208.             $domain->removeTraining($this);
  209.         }
  210.         return $this;
  211.     }
  212.     /**
  213.      * @return Collection<int, SubDomain>
  214.      */
  215.     public function getSubDomain(): Collection
  216.     {
  217.         return $this->subDomain;
  218.     }
  219.     public function addSubDomain(SubDomain $subDomain): self
  220.     {
  221.         if (!$this->subDomain->contains($subDomain)) {
  222.             $this->subDomain[] = $subDomain;
  223.             $subDomain->addTraining($this);
  224.         }
  225.         return $this;
  226.     }
  227.     public function removeSubDomain(SubDomain $subDomain): self
  228.     {
  229.         if ($this->subDomain->removeElement($subDomain)) {
  230.             $subDomain->removeTraining($this);
  231.         }
  232.         return $this;
  233.     }
  234.     /**
  235.      * @return Collection<int, Keywords>
  236.      */
  237.     public function getKeywords(): Collection
  238.     {
  239.         return $this->keywords;
  240.     }
  241.     public function addKeyword(Keywords $keyword): self
  242.     {
  243.         if (!$this->keywords->contains($keyword)) {
  244.             $this->keywords[] = $keyword;
  245.             $keyword->addTraining($this);
  246.         }
  247.         return $this;
  248.     }
  249.     public function removeKeyword(Keywords $keyword): self
  250.     {
  251.         $this->keywords->removeElement($keyword);
  252.         return $this;
  253.     }
  254.     public function getType(): ?Type
  255.     {
  256.         return $this->type;
  257.     }
  258.     public function setType(?Type $type): self
  259.     {
  260.         $this->type $type;
  261.         return $this;
  262.     }
  263.     public function isNew(): ?bool
  264.     {
  265.         return $this->new;
  266.     }
  267.     public function setNew(?bool $new): self
  268.     {
  269.         $this->new $new;
  270.         return $this;
  271.     }
  272.     public function getCustomizable(): ?string
  273.     {
  274.         return $this->customizable;
  275.     }
  276.     public function setCustomizable(?string $customizable): self
  277.     {
  278.         $this->customizable $customizable;
  279.         return $this;
  280.     }
  281.     public function getObjectives(): ?string
  282.     {
  283.         return $this->objectives;
  284.     }
  285.     public function getObjectivesNoHtml(): ?string
  286.     {
  287.         return strip_tags(html_entity_decode($this->objectives));
  288.     }
  289.     public function setObjectives(?string $objectives): self
  290.     {
  291.         $this->objectives $objectives;
  292.         return $this;
  293.     }
  294.     public function getComplementaryObjectives(): ?string
  295.     {
  296.         return $this->complementaryObjectives;
  297.     }
  298.     public function getComplementaryObjectivesNoHtml(): ?string
  299.     {
  300.         return strip_tags(html_entity_decode($this->complementaryObjectives));
  301.     }
  302.     public function setComplementaryObjectives(?string $complementaryObjectives): self
  303.     {
  304.         $this->complementaryObjectives $complementaryObjectives;
  305.         return $this;
  306.     }
  307.     public function getPedagogicContent(): ?string
  308.     {
  309.         return $this->pedagogicContent;
  310.     }
  311.     public function getPedagogicContentNoHtml(): ?string
  312.     {
  313.         return strip_tags(html_entity_decode($this->getPedagogicContent()));
  314.     }
  315.     public function setPedagogicContent(?string $pedagogicContent): self
  316.     {
  317.         $this->pedagogicContent $pedagogicContent;
  318.         return $this;
  319.     }
  320.     public function getPluses(): ?string
  321.     {
  322.         return $this->pluses;
  323.     }
  324.     public function getPlusesNoHtml(): ?string
  325.     {
  326.         return strip_tags(html_entity_decode($this->pluses));
  327.     }
  328.     public function setPluses(?string $pluses): self
  329.     {
  330.         $this->pluses $pluses;
  331.         return $this;
  332.     }
  333.     public function getConcernedPersons(): ?string
  334.     {
  335.         return $this->concernedPersons;
  336.     }
  337.     public function getConcernedPersonsNoHtml(): ?string
  338.     {
  339.         return strip_tags(html_entity_decode($this->concernedPersons));
  340.     }
  341.     public function setConcernedPersons(?string $concernedPersons): self
  342.     {
  343.         $this->concernedPersons $concernedPersons;
  344.         return $this;
  345.     }
  346.     public function getPrerequisites(): ?string
  347.     {
  348.         return $this->prerequisites;
  349.     }
  350.     public function getPrerequisitesNoHtml(): ?string
  351.     {
  352.         return strip_tags(html_entity_decode($this->prerequisites));
  353.     }
  354.     public function setPrerequisites(?string $prerequisites): self
  355.     {
  356.         $this->prerequisites $prerequisites;
  357.         return $this;
  358.     }
  359.     public function getPrice(): ?string
  360.     {
  361.         return $this->price;
  362.     }
  363.     public function setPrice(?string $price): self
  364.     {
  365.         $this->price $price;
  366.         return $this;
  367.     }
  368.     public function getTime(): ?string
  369.     {
  370.         return $this->time;
  371.     }
  372.     public function setTime(?string $time): self
  373.     {
  374.         $this->time $time;
  375.         return $this;
  376.     }
  377.     public function getDate(): ?string
  378.     {
  379.         return $this->date;
  380.     }
  381.     public function setDate(?string $date): self
  382.     {
  383.         $this->date $date;
  384.         return $this;
  385.     }
  386.     public function getPlace(): ?string
  387.     {
  388.         return $this->place;
  389.     }
  390.     public function setPlace(?string $place): self
  391.     {
  392.         $this->place $place;
  393.         return $this;
  394.     }
  395.     /**
  396.      * @return Collection<int, DeviceAndTraining>
  397.      */
  398.     public function getDeviceAndTraining(): Collection
  399.     {
  400.         return $this->deviceAndTraining;
  401.     }
  402.     public function addDeviceAndTraining(DeviceAndTraining $deviceAndTraining): self
  403.     {
  404.         if (!$this->deviceAndTraining->contains($deviceAndTraining)) {
  405.             $this->deviceAndTraining[] = $deviceAndTraining;
  406.             $deviceAndTraining->addTraining($this);
  407.         }
  408.         return $this;
  409.     }
  410.     public function removeDeviceAndTraining(DeviceAndTraining $deviceAndTraining): self
  411.     {
  412.         if ($this->deviceAndTraining->removeElement($deviceAndTraining)) {
  413.             $deviceAndTraining->removeTraining($this);
  414.         }
  415.         return $this;
  416.     }
  417.     public function getTermsOfAccess(): ?string
  418.     {
  419.         return $this->termsOfAccess;
  420.     }
  421.     public function getTermsOfAccessNoHtml(): ?string
  422.     {
  423.         return strip_tags(html_entity_decode($this->termsOfAccess));
  424.     }
  425.     public function setTermsOfAccess(?string $termsOfAccess): self
  426.     {
  427.         $this->termsOfAccess $termsOfAccess;
  428.         return $this;
  429.     }
  430.     public function getAlternatingRythm(): ?string
  431.     {
  432.         return $this->alternatingRythm;
  433.     }
  434.     public function getAlternatingRythmNoHtml(): ?string
  435.     {
  436.         return strip_tags(html_entity_decode($this->alternatingRythm));
  437.     }
  438.     public function setAlternatingRythm(?string $alternatingRythm): self
  439.     {
  440.         $this->alternatingRythm $alternatingRythm;
  441.         return $this;
  442.     }
  443.     public function getTeachingMethods(): ?string
  444.     {
  445.         return $this->teachingMethods;
  446.     }
  447.     public function getTeachingMethodsNoHtml(): ?string
  448.     {
  449.         return strip_tags(html_entity_decode($this->teachingMethods));
  450.     }
  451.     public function setTeachingMethods(?string $teachingMethods): self
  452.     {
  453.         $this->teachingMethods $teachingMethods;
  454.         return $this;
  455.     }
  456.     public function getTeachingMeans(): ?string
  457.     {
  458.         return $this->teachingMeans;
  459.     }
  460.     public function getTeachingsMeansNoHtml(): ?string
  461.     {
  462.         return strip_tags(html_entity_decode($this->teachingMeans));
  463.     }
  464.     public function setTeachingMeans(?string $teachingMeans): self
  465.     {
  466.         $this->teachingMeans $teachingMeans;
  467.         return $this;
  468.     }
  469.     public function getCertificationType(): ?CertificationType
  470.     {
  471.         return $this->certificationType;
  472.     }
  473.     public function setCertificationType(?CertificationType $certificationType): self
  474.     {
  475.         $this->certificationType $certificationType;
  476.         return $this;
  477.     }
  478.     public function getEducationLevel(): ?string
  479.     {
  480.         return $this->educationLevel;
  481.     }
  482.     public function setEducationLevel(?string $educationLevel): self
  483.     {
  484.         $this->educationLevel $educationLevel;
  485.         return $this;
  486.     }
  487.     public function getTrainingOrder(): ?int
  488.     {
  489.         return $this->trainingOrder;
  490.     }
  491.     public function setTrainingOrder(?int $trainingOrder): self
  492.     {
  493.         $this->trainingOrder $trainingOrder;
  494.         return $this;
  495.     }
  496.     public function getCertificationName(): ?string
  497.     {
  498.         return $this->certificationName;
  499.     }
  500.     public function setCertificationName(?string $certificationName): self
  501.     {
  502.         $this->certificationName $certificationName;
  503.         return $this;
  504.     }
  505.     public function getAssessmentMethods(): ?string
  506.     {
  507.         return $this->assessmentMethods;
  508.     }
  509.     public function getAssessmentMethodsNoHtml(): ?string
  510.     {
  511.         return strip_tags(html_entity_decode($this->assessmentMethods));
  512.     }
  513.     public function setAssessmentMethods(?string $assessmentMethods): self
  514.     {
  515.         $this->assessmentMethods $assessmentMethods;
  516.         return $this;
  517.     }
  518.     public function getTargetFunctions(): ?string
  519.     {
  520.         return $this->targetFunctions;
  521.     }
  522.     public function getTargetFunctionsNoHtml(): ?string
  523.     {
  524.         return strip_tags(html_entity_decode($this->targetFunctions));
  525.     }
  526.     public function setTargetFunctions(?string $targetFunctions): self
  527.     {
  528.         $this->targetFunctions $targetFunctions;
  529.         return $this;
  530.     }
  531.     public function getContinuingStudies(): ?string
  532.     {
  533.         return $this->continuingStudies;
  534.     }
  535.     public function getContinuingStudiesNoHtml(): ?string
  536.     {
  537.         return strip_tags(html_entity_decode($this->continuingStudies));
  538.     }
  539.     public function setContinuingStudies(?string $continuingStudies): self
  540.     {
  541.         $this->continuingStudies $continuingStudies;
  542.         return $this;
  543.     }
  544.     public function getDisabledAccessibility(): ?int
  545.     {
  546.         return $this->disabledAccessibility;
  547.     }
  548.     public function setDisabledAccessibility(?int $disabledAccessibility): self
  549.     {
  550.         $this->disabledAccessibility $disabledAccessibility;
  551.         return $this;
  552.     }
  553.     public function getPedagogicalReferent(): ?Collection
  554.     {
  555.         return $this->pedagogicalReferent;
  556.     }
  557.     public function addPedagogicalReferent(?User $pedagogicalReferent): self
  558.     {
  559.         if (!$this->pedagogicalReferent->contains($pedagogicalReferent)) {
  560.             $this->pedagogicalReferent[] = $pedagogicalReferent;
  561.             $pedagogicalReferent->addTrainingsPedagogical($this);
  562.         }
  563.         return $this;
  564.     }
  565.     public function removePedagogicalReferent(?User $pedagogicalReferent): self
  566.     {
  567.         $this->pedagogicalReferent->removeElement($pedagogicalReferent);
  568.         return $this;
  569.     }
  570.     public function getCommercials(): ?Collection
  571.     {
  572.         return $this->commercials;
  573.     }
  574.     public function addCommercial(?User $commercial): self
  575.     {
  576.         if (!$this->commercials->contains($commercial)) {
  577.             $this->commercials[] = $commercial;
  578.             $commercial->addTrainingsPedagogical($this);
  579.         }
  580.         return $this;
  581.     }
  582.     public function removeCommercial(?User $commercial): self
  583.     {
  584.         $this->commercials->removeElement($commercial);
  585.         return $this;
  586.     }
  587.     public function getOwner(): ?User
  588.     {
  589.         return $this->owner;
  590.     }
  591.     public function setOwner(?User $owner): self
  592.     {
  593.         $this->owner $owner;
  594.         return $this;
  595.     }
  596.     public function isIsFiche(): ?bool
  597.     {
  598.         return $this->isFiche;
  599.     }
  600.     public function setIsFiche(?bool $isFiche): self
  601.     {
  602.         $this->isFiche $isFiche;
  603.         return $this;
  604.     }
  605.     public function getTestimonials(): ?string
  606.     {
  607.         return $this->testimonials;
  608.     }
  609.     public function getTestimonialsNoHtml(): ?string
  610.     {
  611.         return strip_tags(html_entity_decode($this->testimonials));
  612.     }
  613.     public function setTestimonials(?string $testimonials): self
  614.     {
  615.         $this->testimonials $testimonials;
  616.         return $this;
  617.     }
  618.     public function getAccessibilityText(): ?string
  619.     {
  620.         return $this->accessibilityText;
  621.     }
  622.     public function getAccessibilityTextNoHtml(): ?string
  623.     {
  624.         return strip_tags(html_entity_decode($this->accessibilityText));
  625.     }
  626.     public function setAccessibilityText(?string $accessibilityText): self
  627.     {
  628.         $this->accessibilityText $accessibilityText;
  629.         return $this;
  630.     }
  631.     public function getCreationDate(): ?\DateTime
  632.     {
  633.         return $this->creationDate;
  634.     }
  635.     public function setCreationDate(?\DateTime $creationDate): self
  636.     {
  637.         $this->creationDate $creationDate;
  638.         return $this;
  639.     }
  640.     public function getEditDate(): ?\DateTime
  641.     {
  642.         return $this->editDate;
  643.     }
  644.     public function setEditDate(?\DateTime $editDate): self
  645.     {
  646.         $this->editDate $editDate;
  647.         return $this;
  648.     }
  649.     public function isLogoDisplay(): ?bool
  650.     {
  651.         return $this->logoDisplay;
  652.     }
  653.     public function setLogoDisplay(?bool $logoDisplay): self
  654.     {
  655.         $this->logoDisplay $logoDisplay;
  656.         return $this;
  657.     }
  658.     public function getWhichPublic(): ?int
  659.     {
  660.         return $this->whichPublic;
  661.     }
  662.     public function setWhichPublic(?int $whichPublic): self
  663.     {
  664.         $this->whichPublic $whichPublic;
  665.         return $this;
  666.     }
  667.     /**
  668.      * @return Collection<int, Sessions>
  669.      */
  670.     public function getSessions(): Collection
  671.     {
  672.         return $this->sessions;
  673.     }
  674.     public function addSession(Sessions $session): self
  675.     {
  676.         if (!$this->sessions->contains($session)) {
  677.             $this->sessions[] = $session;
  678.             $session->setTrainings($this);
  679.         }
  680.         return $this;
  681.     }
  682.     public function removeSession(Sessions $session): self
  683.     {
  684.         if ($this->sessions->removeElement($session)) {
  685.             // set the owning side to null (unless already changed)
  686.             if ($session->getTrainings() === $this) {
  687.                 $session->setTrainings(null);
  688.             }
  689.         }
  690.         return $this;
  691.     }
  692.     public function isPublished(): ?bool
  693.     {
  694.         return $this->published;
  695.     }
  696.     public function setPublished(?bool $published): self
  697.     {
  698.         $this->published $published;
  699.         return $this;
  700.     }
  701.     public function getSlug(): ?string
  702.     {
  703.         return $this->slug;
  704.     }
  705.     public function setSlug(?string $slug): self
  706.     {
  707.         $this->slug $slug;
  708.         return $this;
  709.     }
  710.     public function getTrainingPlace(): ?TrainingPlace
  711.     {
  712.         return $this->trainingPlace;
  713.     }
  714.     public function setTrainingPlace(?TrainingPlace $trainingPlace): self
  715.     {
  716.         $this->trainingPlace $trainingPlace;
  717.         return $this;
  718.     }
  719.     public function getFicheTitle(): ?string
  720.     {
  721.         return $this->ficheTitle;
  722.     }
  723.     public function setFicheTitle(?string $ficheTitle): self
  724.     {
  725.         $this->ficheTitle $ficheTitle;
  726.         return $this;
  727.     }
  728.     public function getLinkedTrainings(): ?Collection
  729.     {
  730.         return $this->linkedTrainings;
  731.     }
  732.     public function addLinkedTraining(self $linkedTraining): self
  733.     {
  734.         if (!$this->linkedTrainings->contains($linkedTraining)) {
  735.             $this->linkedTrainings[] = $linkedTraining;
  736. //            $linkedTraining->addLinkedTraining($this);
  737.         }
  738.         return $this;
  739.     }
  740.     public function removeLinkedTraining(self $linkedTraining): self
  741.     {
  742.         $this->linkedTrainings->removeElement($linkedTraining);
  743.         return $this;
  744.     }
  745.     public function getTraineeOrEnterprise(): ?string
  746.     {
  747.         return $this->traineeOrEnterprise;
  748.     }
  749.     public function setTraineeOrEnterprise(?string $traineeOrEnterprise): self
  750.     {
  751.         $this->traineeOrEnterprise $traineeOrEnterprise;
  752.         return $this;
  753.     }
  754.     public function getValidityDate(): ?\DateTimeInterface
  755.     {
  756.         return $this->validityDate;
  757.     }
  758.     public function setValidityDate(?\DateTimeInterface $validityDate): self
  759.     {
  760.         $this->validityDate $validityDate;
  761.         return $this;
  762.     }
  763.     /**
  764.      * @return Collection<int, SubDomainOrder>
  765.      */
  766.     public function getSubDomainOrders(): Collection
  767.     {
  768.         return $this->subDomainOrders;
  769.     }
  770.     public function addSubDomainOrder(SubDomainOrder $subDomainOrder): self
  771.     {
  772.         if (!$this->subDomainOrders->contains($subDomainOrder)) {
  773.             $this->subDomainOrders[] = $subDomainOrder;
  774.             $subDomainOrder->setTraining($this);
  775.         }
  776.         return $this;
  777.     }
  778.     public function removeSubDomainOrder(SubDomainOrder $subDomainOrder): self
  779.     {
  780.         if ($this->subDomainOrders->removeElement($subDomainOrder)) {
  781.             // set the owning side to null (unless already changed)
  782.             if ($subDomainOrder->getTraining() === $this) {
  783.                 $subDomainOrder->setTraining(null);
  784.             }
  785.         }
  786.         return $this;
  787.     }
  788.     public function getLinkVideo(): ?string
  789.     {
  790.         return $this->linkVideo;
  791.     }
  792.     public function setLinkVideo(?string $linkVideo): self
  793.     {
  794.         $this->linkVideo $linkVideo;
  795.         return $this;
  796.     }
  797.     public function getRncpOrRs(): ?string
  798.     {
  799.         return $this->rncpOrRs;
  800.     }
  801.     public function setRncpOrRs(?string $rncpOrRs): self
  802.     {
  803.         $this->rncpOrRs $rncpOrRs;
  804.         return $this;
  805.     }
  806.     public function getDays(): ?int
  807.     {
  808.         return $this->days;
  809.     }
  810.     public function setDays(?int $days): self
  811.     {
  812.         $this->days $days;
  813.         return $this;
  814.     }
  815.     public function getHours(): ?int
  816.     {
  817.         return $this->hours;
  818.     }
  819.     public function setHours(?int $hours): self
  820.     {
  821.         $this->hours $hours;
  822.         return $this;
  823.     }
  824.     public function getCompanyMissions(): ?string
  825.     {
  826.         return $this->companyMissions;
  827.     }
  828.     public function setCompanyMissions(?string $companyMissions): self
  829.     {
  830.         $this->companyMissions $companyMissions;
  831.         return $this;
  832.     }
  833.     public function getEducationLevelName(): ?EducationLevel
  834.     {
  835.         return $this->educationLevelName;
  836.     }
  837.     public function setEducationLevelName(?EducationLevel $educationLevelName): self
  838.     {
  839.         $this->educationLevelName $educationLevelName;
  840.         return $this;
  841.     }
  842.     public function getPublicType(): ?PublicType
  843.     {
  844.         return $this->publicType;
  845.     }
  846.     public function setPublicType(?PublicType $publicType): self
  847.     {
  848.         $this->publicType $publicType;
  849.         return $this;
  850.     }
  851.     public function getValidityDateRncp(): ?\DateTimeInterface
  852.     {
  853.         return $this->validityDateRncp;
  854.     }
  855.     public function setValidityDateRncp(?\DateTimeInterface $validityDateRncp): self
  856.     {
  857.         $this->validityDateRncp $validityDateRncp;
  858.         return $this;
  859.     }
  860.     public function isResetDate(): ?bool
  861.     {
  862.         return $this->resetDate;
  863.     }
  864.     public function setResetDate(?bool $resetDate): self
  865.     {
  866.         $this->resetDate $resetDate;
  867.         return $this;
  868.     }
  869. }