<?phpnamespace App\Entity;use App\Repository\LitigeRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=LitigeRepository::class) */class Litige{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="text") */ private $description; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $image; /** * @ORM\Column(type="string", length=255) */ private $refound; /** * @ORM\ManyToOne(targetEntity=Product::class) * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="litiges") */ private $user; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getImage() { return $this->image; } public function setImage($image): self { $this->image = $image; return $this; } public function getRefound(): ?string { return $this->refound; } public function setRefound(string $refound): self { $this->refound = $refound; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }}