src/Entity/Etapa.php line 12
<?phpnamespace App\Entity;use App\Repository\EtapaRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EtapaRepository::class)]class Etapa{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nome = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $prazo = null;#[ORM\ManyToOne(inversedBy: 'etapas')]#[ORM\JoinColumn(nullable: false)]private ?User $user = null;#[ORM\ManyToOne(inversedBy: 'etapas')]private ?Documento $documento = null;#[ORM\Column(nullable: true)]private ?\DateTimeImmutable $updatedAt = null;#[ORM\ManyToOne(inversedBy: 'etapas')]#[ORM\JoinColumn(nullable: false)]private ?Fluxo $fluxo = null;#[ORM\Column]private ?int $ordem = null;#[ORM\ManyToOne(inversedBy: 'etapas')]private ?Registro $registro = null;#[ORM\OneToMany(mappedBy: 'etapa', targetEntity: Cx::class)]private Collection $cx;#[ORM\OneToMany(mappedBy: 'etapa', targetEntity: Caixa::class)]private Collection $caixa;#[ORM\OneToMany(mappedBy: 'etapa', targetEntity: Documento::class)]private Collection $documentos;#[ORM\Column(length: 255, nullable: true)]private ?string $obs = null;public function __construct(){$this->cx = new ArrayCollection();$this->caixa = new ArrayCollection();$this->documentos = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNome(): ?string{return $this->nome;}public function setNome(string $nome): static{$this->nome = $nome;return $this;}public function getPrazo(): ?\DateTimeInterface{return $this->prazo;}public function setPrazo(\DateTimeInterface $prazo): static{$this->prazo = $prazo;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}public function getDocumento(): ?Documento{return $this->documento;}public function setDocumento(?Documento $documento): static{$this->documento = $documento;return $this;}public function getUpdatedAt(): ?\DateTimeImmutable{return $this->updatedAt;}public function setUpdatedAt(?\DateTimeImmutable $updatedAt): static{$this->updatedAt = $updatedAt;return $this;}public function getFluxo(): ?Fluxo{return $this->fluxo;}public function setFluxo(?Fluxo $fluxo): static{$this->fluxo = $fluxo;return $this;}public function getOrdem(): ?int{return $this->ordem;}public function setOrdem(int $ordem): static{$this->ordem = $ordem;return $this;}public function getRegistro(): ?Registro{return $this->registro;}public function setRegistro(?Registro $registro): static{$this->registro = $registro;return $this;}/*** @return Collection<int, Cx>*/public function getCx(): Collection{return $this->cx;}public function addCx(Cx $cx): static{if (!$this->cx->contains($cx)) {$this->cx->add($cx);$cx->setEtapa($this);}return $this;}public function removeCx(Cx $cx): static{if ($this->cx->removeElement($cx)) {// set the owning side to null (unless already changed)if ($cx->getEtapa() === $this) {$cx->setEtapa(null);}}return $this;}/*** @return Collection<int, Caixa>*/public function getCaixa(): Collection{return $this->caixa;}public function addCaixa(Caixa $caixa): static{if (!$this->caixa->contains($caixa)) {$this->caixa->add($caixa);$caixa->setEtapa($this);}return $this;}public function removeCaixa(Caixa $caixa): static{if ($this->caixa->removeElement($caixa)) {// set the owning side to null (unless already changed)if ($caixa->getEtapa() === $this) {$caixa->setEtapa(null);}}return $this;}/*** @return Collection<int, Documento>*/public function getDocumentos(): Collection{return $this->documentos;}public function addDocumento(Documento $documento): static{if (!$this->documentos->contains($documento)) {$this->documentos->add($documento);$documento->setEtapa($this);}return $this;}public function removeDocumento(Documento $documento): static{if ($this->documentos->removeElement($documento)) {// set the owning side to null (unless already changed)if ($documento->getEtapa() === $this) {$documento->setEtapa(null);}}return $this;}public function getObs(): ?string{return $this->obs;}public function setObs(?string $obs): static{$this->obs = $obs;return $this;}}