src/Entity/Gos/PostageCost.php line 15

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