<?phpnamespace App\Entity\Gos;use App\Repository\Gos\CancellationFoResponseRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CancellationFoResponseRepository::class) * @ORM\HasLifecycleCallbacks */class CancellationFoResponse{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="text") */ private $body; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity=OrderPart::class, inversedBy="cancellationFoResponses") * @ORM\JoinColumn(nullable=false) */ private $orderPart; /** * @ORM\Column(type="boolean", nullable=true) */ private $isSuccessfully; /** * @ORM\Column(type="integer", nullable=true) */ private $failureNumber; /** @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 getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getBody(): ?string { return $this->body; } public function setBody(string $body): self { $this->body = $body; return $this; } public function getCreatedAt() { return $this->createdAt; } public function setCreatedAt($createdAt): void { $this->createdAt = $createdAt; } public function getUpdatedAt() { return $this->updatedAt; } public function setUpdatedAt($updatedAt): void { $this->updatedAt = $updatedAt; } public function getOrderPart(): ?OrderPart { return $this->orderPart; } public function setOrderPart(?OrderPart $orderPart): self { $this->orderPart = $orderPart; return $this; } public function getIsSuccessfully(): ?bool { return $this->isSuccessfully; } public function setIsSuccessfully(?bool $isSuccessfully): self { $this->isSuccessfully = $isSuccessfully; return $this; } public function getFailureNumber(): ?int { return $this->failureNumber; } public function setFailureNumber(?int $failureNumber): self { $this->failureNumber = $failureNumber; return $this; }}