<?php
namespace App\Entity;
use App\Repository\FormationsThematicsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FormationsThematicsRepository::class)
*/
class FormationsThematics
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $label;
/**
* @ORM\ManyToOne(targetEntity=Formations::class, inversedBy="thematics")
*/
private $formation;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isEnabled;
/**
* @ORM\ManyToMany(targetEntity=Registrations::class, mappedBy="thematics")
*/
private $registrations;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $details;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $target;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $duration;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cost;
/**
* @ORM\ManyToOne(targetEntity=Domains::class)
*/
private $domain;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $mainObjective;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $specificsObjectives;
public function __construct()
{
$this->registrations = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(?string $label): self
{
$this->label = $label;
return $this;
}
public function getFormation(): ?Formations
{
return $this->formation;
}
public function setFormation(?Formations $formation): self
{
$this->formation = $formation;
return $this;
}
public function getIsEnabled(): ?bool
{
return $this->isEnabled;
}
public function setIsEnabled(?bool $isEnabled): self
{
$this->isEnabled = $isEnabled;
return $this;
}
/**
* @return Collection<int, Registrations>
*/
public function getRegistrations(): Collection
{
return $this->registrations;
}
public function addRegistration(Registrations $registration): self
{
if (!$this->registrations->contains($registration)) {
$this->registrations[] = $registration;
$registration->addThematic($this);
}
return $this;
}
public function removeRegistration(Registrations $registration): self
{
if ($this->registrations->removeElement($registration)) {
$registration->removeThematic($this);
}
return $this;
}
public function getDetails(): ?string
{
return $this->details;
}
public function setDetails(?string $details): self
{
$this->details = $details;
return $this;
}
public function getTarget(): ?string
{
return $this->target;
}
public function setTarget(?string $target): self
{
$this->target = $target;
return $this;
}
public function getDuration(): ?string
{
return $this->duration;
}
public function setDuration(?string $duration): self
{
$this->duration = $duration;
return $this;
}
public function getCost(): ?string
{
return $this->cost;
}
public function setCost(?string $cost): self
{
$this->cost = $cost;
return $this;
}
public function getDomain(): ?Domains
{
return $this->domain;
}
public function setDomain(?Domains $domain): self
{
$this->domain = $domain;
return $this;
}
public function getMainObjective(): ?string
{
return $this->mainObjective;
}
public function setMainObjective(?string $mainObjective): self
{
$this->mainObjective = $mainObjective;
return $this;
}
public function getSpecificsObjectives(): ?string
{
return $this->specificsObjectives;
}
public function setSpecificsObjectives(?string $specificsObjectives): self
{
$this->specificsObjectives = $specificsObjectives;
return $this;
}
}