src/Entity/Gos/PostageCost.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\PostageCostRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PostageCostRepository::class)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  */
  9. class PostageCost
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="text")
  19.      */
  20.     private $request;
  21.     /**
  22.      * @ORM\Column(type="string")
  23.      */
  24.     private $hash;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $result;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $createdAt;
  33.     /**
  34.      * @ORM\Column(type="datetime", nullable=true)
  35.      */
  36.     private $updatedAt;
  37.     /** @ORM\PrePersist() */
  38.     public function prePersist()
  39.     {
  40.         $this->createdAt = new \DateTime();
  41.     }
  42.     /** @ORM\PreUpdate() */
  43.     public function preUpdate()
  44.     {
  45.         $this->updatedAt = new \DateTime();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getRequest(): ?string
  52.     {
  53.         return $this->request;
  54.     }
  55.     public function setRequest(string $request): self
  56.     {
  57.         $this->request $request;
  58.         return $this;
  59.     }
  60.     public function getHash(): ?string
  61.     {
  62.         return $this->hash;
  63.     }
  64.     public function setHash(string $hash): self
  65.     {
  66.         $this->hash $hash;
  67.         return $this;
  68.     }
  69.     public function getResult(): ?string
  70.     {
  71.         return $this->result;
  72.     }
  73.     public function setResult(string $result): self
  74.     {
  75.         $this->result $result;
  76.         return $this;
  77.     }
  78.     public function getCreatedAt(): ?\DateTimeInterface
  79.     {
  80.         return $this->createdAt;
  81.     }
  82.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  83.     {
  84.         $this->createdAt $createdAt;
  85.         return $this;
  86.     }
  87.     public function getUpdatedAt(): ?\DateTimeInterface
  88.     {
  89.         return $this->updatedAt;
  90.     }
  91.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  92.     {
  93.         $this->updatedAt $updatedAt;
  94.         return $this;
  95.     }
  96. }