src/Entity/Registro.php line 12
<?phpnamespace App\Entity;use App\Repository\RegistroRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RegistroRepository::class)]class Registro{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $operacao = null;#[ORM\Column(length: 255)]private ?string $user = null;#[ORM\Column(length: 255)]private ?string $cliente = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $data = null;#[ORM\ManyToOne(inversedBy: 'registros')]private ?Documento $documento = null;#[ORM\OneToMany(mappedBy: 'registro', targetEntity: Etapa::class)]private Collection $etapas;#[ORM\Column(length: 255, nullable: true)]private ?string $ip = null;public function __construct(){$this->data = new \DateTimeImmutable('America/Sao_Paulo');$this->etapas = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getOperacao(): ?string{return $this->operacao;}public function setOperacao(string $operacao): static{$this->operacao = $operacao;return $this;}public function getUser(): string{return $this->user;}public function setUser(string $user): static{$this->user = $user;return $this;}public function getCliente(): string{return $this->cliente;}public function setCliente(string $cliente): static{$this->cliente = $cliente;return $this;}public function getData(): ?\DateTimeInterface{return $this->data;}public function setData(?\DateTimeInterface $data): static{$this->data = $data;return $this;}public function getDocumento(): ?Documento{return $this->documento;}public function setDocumento(?Documento $documento): static{$this->documento = $documento;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->setRegistro($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->getRegistro() === $this) {$etapa->setRegistro(null);}}return $this;}public function getIp(): ?string{return $this->ip;}public function setIp(?string $ip): static{$this->ip = $ip;return $this;}}