src/Entity/Litige.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LitigeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LitigeRepository::class)
  7.  */
  8. class Litige
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $title;
  20.     /**
  21.      * @ORM\Column(type="text")
  22.      */
  23.     private $description;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $image;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $refound;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Product::class)
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $product;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="litiges")
  39.      */
  40.     private $user;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $createdAt;
  45.     public function __construct()
  46.     {
  47.         $this->createdAt = new \DateTime();
  48.     }
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getTitle(): ?string
  54.     {
  55.         return $this->title;
  56.     }
  57.     public function setTitle(string $title): self
  58.     {
  59.         $this->title $title;
  60.         return $this;
  61.     }
  62.     public function getDescription(): ?string
  63.     {
  64.         return $this->description;
  65.     }
  66.     public function setDescription(string $description): self
  67.     {
  68.         $this->description $description;
  69.         return $this;
  70.     }
  71.     public function getImage()
  72.     {
  73.         return $this->image;
  74.     }
  75.     public function setImage($image): self
  76.     {
  77.         $this->image $image;
  78.         return $this;
  79.     }
  80.     public function getRefound(): ?string
  81.     {
  82.         return $this->refound;
  83.     }
  84.     public function setRefound(string $refound): self
  85.     {
  86.         $this->refound $refound;
  87.         return $this;
  88.     }
  89.     public function getProduct(): ?Product
  90.     {
  91.         return $this->product;
  92.     }
  93.     public function setProduct(?Product $product): self
  94.     {
  95.         $this->product $product;
  96.         return $this;
  97.     }
  98.     public function getUser(): ?User
  99.     {
  100.         return $this->user;
  101.     }
  102.     public function setUser(?User $user): self
  103.     {
  104.         $this->user $user;
  105.         return $this;
  106.     }
  107.     public function getCreatedAt(): ?\DateTimeInterface
  108.     {
  109.         return $this->createdAt;
  110.     }
  111.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  112.     {
  113.         $this->createdAt $createdAt;
  114.         return $this;
  115.     }
  116. }