<?phpnamespace App\Entity;use App\Repository\ReclamationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ReclamationRepository::class) */class Reclamation{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Order::class, inversedBy="reclamations") * @ORM\JoinColumn(nullable=false) */ private $order; /** * @ORM\Column(type="string", length=130) */ private $email; /** * @ORM\Column(type="string", length=100) */ private $phone; /** * @ORM\ManyToOne(targetEntity=Dealer::class, inversedBy="reclamations") * @ORM\JoinColumn(nullable=false) */ private $dealer; /** * @ORM\Column(type="datetime") */ private $createts; /** * @ORM\Column(type="text") */ private $description; /** * @ORM\Column(type="boolean") */ private $completed = false; public function getId(): ?int { return $this->id; } public function getOrder(): ?Order { return $this->order; } public function setOrder(?Order $order): self { $this->order = $order; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(string $phone): self { $this->phone = $phone; return $this; } public function getDealer(): ?Dealer { return $this->dealer; } public function setDealer(?Dealer $dealer): self { $this->dealer = $dealer; return $this; } public function getCreatets(): ?\DateTimeInterface { return $this->createts; } public function setCreatets(\DateTimeInterface $createts): self { $this->createts = $createts; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } /** * @return bool */ public function isCompleted(): bool { return $this->completed; } /** * @param bool $completed */ public function setCompleted(bool $completed): void { $this->completed = $completed; }}