<?php
namespace App\Entity;
use App\Repository\ParResultadoRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ParResultadoRepository::class)]
class ParResultado
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100)]
private ?string $nombre = null;
#[ORM\OneToMany(mappedBy: 'resultadoRevision', targetEntity: RFFUID::class)]
private Collection $FUIDResultadoRecepcion;
public function __construct()
{
$this->FUIDResultadoRecepcion = new ArrayCollection();
}
public function __toString() {
return $this->getNombre();
}
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): static
{
$this->nombre = $nombre;
return $this;
}
/**
* @return Collection<int, RFFUID>
*/
public function getFUIDResultadoRecepcion(): Collection
{
return $this->FUIDResultadoRecepcion;
}
public function addFUIDResultadoRecepcion(RFFUID $fUIDResultadoRecepcion): static
{
if (!$this->FUIDResultadoRecepcion->contains($fUIDResultadoRecepcion)) {
$this->FUIDResultadoRecepcion->add($fUIDResultadoRecepcion);
$fUIDResultadoRecepcion->setResultadoRevision($this);
}
return $this;
}
public function removeFUIDResultadoRecepcion(RFFUID $fUIDResultadoRecepcion): static
{
if ($this->FUIDResultadoRecepcion->removeElement($fUIDResultadoRecepcion)) {
// set the owning side to null (unless already changed)
if ($fUIDResultadoRecepcion->getResultadoRevision() === $this) {
$fUIDResultadoRecepcion->setResultadoRevision(null);
}
}
return $this;
}
}