src/Entity/Gos/CancellationFoResponse.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\CancellationFoResponseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CancellationFoResponseRepository::class)
  7.  * @ORM\HasLifecycleCallbacks
  8.  */
  9. class CancellationFoResponse
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=User::class)
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $user;
  22.     /**
  23.      * @ORM\Column(type="text")
  24.      */
  25.     private $body;
  26.     /**
  27.      * @ORM\Column(type="datetime")
  28.      */
  29.     private $createdAt;
  30.     /**
  31.      * @ORM\Column(type="datetime", nullable=true)
  32.      */
  33.     private $updatedAt;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=OrderPart::class, inversedBy="cancellationFoResponses")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $orderPart;
  39.     /**
  40.      * @ORM\Column(type="boolean", nullable=true)
  41.      */
  42.     private $isSuccessfully;
  43.     /**
  44.      * @ORM\Column(type="integer", nullable=true)
  45.      */
  46.     private $failureNumber;
  47.     /** @ORM\PrePersist() */
  48.     public function prePersist()
  49.     {
  50.         $this->createdAt = new \DateTime();
  51.     }
  52.     /** @ORM\PreUpdate() */
  53.     public function preUpdate()
  54.     {
  55.         $this->updatedAt = new \DateTime();
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getUser(): ?User
  62.     {
  63.         return $this->user;
  64.     }
  65.     public function setUser(?User $user): self
  66.     {
  67.         $this->user $user;
  68.         return $this;
  69.     }
  70.     public function getBody(): ?string
  71.     {
  72.         return $this->body;
  73.     }
  74.     public function setBody(string $body): self
  75.     {
  76.         $this->body $body;
  77.         return $this;
  78.     }
  79.     public function getCreatedAt()
  80.     {
  81.         return $this->createdAt;
  82.     }
  83.     public function setCreatedAt($createdAt): void
  84.     {
  85.         $this->createdAt $createdAt;
  86.     }
  87.     public function getUpdatedAt()
  88.     {
  89.         return $this->updatedAt;
  90.     }
  91.     public function setUpdatedAt($updatedAt): void
  92.     {
  93.         $this->updatedAt $updatedAt;
  94.     }
  95.     public function getOrderPart(): ?OrderPart
  96.     {
  97.         return $this->orderPart;
  98.     }
  99.     public function setOrderPart(?OrderPart $orderPart): self
  100.     {
  101.         $this->orderPart $orderPart;
  102.         return $this;
  103.     }
  104.     public function getIsSuccessfully(): ?bool
  105.     {
  106.         return $this->isSuccessfully;
  107.     }
  108.     public function setIsSuccessfully(?bool $isSuccessfully): self
  109.     {
  110.         $this->isSuccessfully $isSuccessfully;
  111.         return $this;
  112.     }
  113.     public function getFailureNumber(): ?int
  114.     {
  115.         return $this->failureNumber;
  116.     }
  117.     public function setFailureNumber(?int $failureNumber): self
  118.     {
  119.         $this->failureNumber $failureNumber;
  120.         return $this;
  121.     }
  122. }