src/Entity/BlocRh.php line 11
<?phpnamespace App\Entity;use App\Repository\BlocRhRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BlocRhRepository::class)]class BlocRh{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'blocRhs')]private ?FicheRh $bloc_rh = null;#[ORM\Column(length: 255)]private ?string $titre = null;#[ORM\OneToMany(mappedBy: 'element_rh', targetEntity: ElementRh::class)]private Collection $elementRhs;public function __construct(){$this->elementRhs = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getBlocRh(): ?FicheRh{return $this->bloc_rh;}public function setBlocRh(?FicheRh $bloc_rh): self{$this->bloc_rh = $bloc_rh;return $this;}public function getTitre(): ?string{return $this->titre;}public function setTitre(string $titre): self{$this->titre = $titre;return $this;}/*** @return Collection<int, ElementRh>*/public function getElementRhs(): Collection{return $this->elementRhs;}public function addElementRh(ElementRh $elementRh): self{if (!$this->elementRhs->contains($elementRh)) {$this->elementRhs->add($elementRh);$elementRh->setElementRh($this);}return $this;}public function removeElementRh(ElementRh $elementRh): self{if ($this->elementRhs->removeElement($elementRh)) {// set the owning side to null (unless already changed)if ($elementRh->getElementRh() === $this) {$elementRh->setElementRh(null);}}return $this;}}