<?phpnamespace App\Entity\Gos;use App\Repository\Gos\PostageCostRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PostageCostRepository::class) * @ORM\HasLifecycleCallbacks() */class PostageCost{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text") */ private $request; /** * @ORM\Column(type="string") */ private $hash; /** * @ORM\Column(type="text") */ private $result; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getRequest(): ?string { return $this->request; } public function setRequest(string $request): self { $this->request = $request; return $this; } public function getHash(): ?string { return $this->hash; } public function setHash(string $hash): self { $this->hash = $hash; return $this; } public function getResult(): ?string { return $this->result; } public function setResult(string $result): self { $this->result = $result; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; }}