src/Entity/Fluxo.php line 11
<?phpnamespace App\Entity;use App\Repository\FluxoRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: FluxoRepository::class)]class Fluxo{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nome = null;#[ORM\Column]private ?\DateTimeImmutable $createdAt = null;#[ORM\ManyToOne(inversedBy: 'fluxos')]#[ORM\JoinColumn(nullable: false)]private ?User $user = null;#[ORM\OneToMany(mappedBy: 'fluxo', targetEntity: Etapa::class)]private Collection $etapas;#[ORM\ManyToOne(inversedBy: 'fluxos')]private ?Cliente $cliente = null;#[ORM\Column(length: 255, nullable: true)]private ?string $obs = null;#[ORM\OneToMany(mappedBy: 'fluxo', targetEntity: Caixa::class,)]private Collection $caixas;public function __construct(){$this->etapas = new ArrayCollection();$this->createdAt = new \DateTimeImmutable('America/Sao_Paulo');$this->caixas = 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 getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): static{$this->createdAt = $createdAt;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}/*** @return Collection<int, Etapa>*/public function getEtapas(): Collection{return $this->etapas;}public function addEtapa(Etapa $etapa): static{if (!$this->etapas->contains($etapa)) {$this->etapas->add($etapa);$etapa->setFluxo($this);}return $this;}public function removeEtapa(Etapa $etapa): static{if ($this->etapas->removeElement($etapa)) {// set the owning side to null (unless already changed)if ($etapa->getFluxo() === $this) {$etapa->setFluxo(null);}}return $this;}public function getCliente(): ?Cliente{return $this->cliente;}public function setCliente(?Cliente $cliente): static{$this->cliente = $cliente;return $this;}public function getObs(): ?string{return $this->obs;}public function setObs(?string $obs): static{$this->obs = $obs;return $this;}/*** @return Collection<int, Caixa>*/public function getCaixas(): Collection{return $this->caixas;}public function addCaixa(Caixa $caixa): static{if (!$this->caixas->contains($caixa)) {$this->caixas->add($caixa);$caixa->setFluxo($this);}return $this;}public function removeCaixa(Caixa $caixa): static{if ($this->caixas->removeElement($caixa)) {// set the owning side to null (unless already changed)if ($caixa->getFluxo() === $this) {$caixa->setFluxo(null);}}return $this;}}