<?phpnamespace App\Entity;use App\Repository\DocapostReturnRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DocapostReturnRepository::class)]#[ORM\HasLifecycleCallbacks]class DocapostReturn{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $created_at = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $updated_at = null; #[ORM\Column(type: 'datetime', nullable: true)] private ?\DateTimeInterface $sent_at = null; #[ORM\OneToOne(inversedBy: 'docapostReturn', targetEntity: User::class, cascade: ['persist', 'remove'])] #[ORM\JoinColumn(nullable: false)] private ?User $user; #[ORM\OneToOne(targetEntity: DocapostLog::class, cascade: ['persist', 'remove'])] private ?DocapostLog $log; #[ORM\Column(type: 'boolean', nullable: true)] private ?bool $success = null; #[ORM\PrePersist] #[ORM\PreUpdate] public function updatedTimestamps(): void { $dateTimeNow = new \DateTime(); $this->setUpdatedAt($dateTimeNow); if (null === $this->getCreatedAt()) { $this->setCreatedAt($dateTimeNow); } } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->created_at; } public function setCreatedAt(\DateTimeInterface $created_at): self { $this->created_at = $created_at; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updated_at; } public function setUpdatedAt(\DateTimeInterface $updated_at): self { $this->updated_at = $updated_at; return $this; } public function getSentAt(): ?\DateTimeInterface { return $this->sent_at; } public function setSentAt(?\DateTimeInterface $sent_at): self { $this->sent_at = $sent_at; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(User $user): self { $this->user = $user; return $this; } public function getLog(): ?DocapostLog { return $this->log; } public function setLog(?DocapostLog $log): self { $this->log = $log; return $this; } public function getSuccess(): ?bool { return $this->success; } public function setSuccess(?bool $success): self { $this->success = $success; return $this; }}