src/Entity/Caution.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CautionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CautionRepository::class)
  7.  */
  8. class Caution
  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 $titre;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $createdAt;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="cautions")
  26.      */
  27.     private $product;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="cautions")
  30.      */
  31.     private $user;
  32.     /**
  33.      * @ORM\Column(type="float", nullable=true)
  34.      */
  35.     private $montant;
  36.     /**
  37.      * @ORM\Column(type="boolean", nullable=true)
  38.      */
  39.     private $isTrancefert;
  40.     /**
  41.      * @ORM\Column(type="boolean", nullable=true)
  42.      */
  43.     private $isReturn;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Location::class, inversedBy="cautions")
  46.      */
  47.     private $location;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getTitre(): ?string
  53.     {
  54.         return $this->titre;
  55.     }
  56.     public function setTitre(string $titre): self
  57.     {
  58.         $this->titre $titre;
  59.         return $this;
  60.     }
  61.     public function getCreatedAt(): ?\DateTimeInterface
  62.     {
  63.         return $this->createdAt;
  64.     }
  65.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  66.     {
  67.         $this->createdAt $createdAt;
  68.         return $this;
  69.     }
  70.     public function getProduct(): ?Product
  71.     {
  72.         return $this->product;
  73.     }
  74.     public function setProduct(?Product $product): self
  75.     {
  76.         $this->product $product;
  77.         return $this;
  78.     }
  79.     public function getUser(): ?User
  80.     {
  81.         return $this->user;
  82.     }
  83.     public function setUser(?User $user): self
  84.     {
  85.         $this->user $user;
  86.         return $this;
  87.     }
  88.     public function getMontant(): ?float
  89.     {
  90.         return $this->montant;
  91.     }
  92.     public function setMontant(?float $montant): self
  93.     {
  94.         $this->montant $montant;
  95.         return $this;
  96.     }
  97.     public function getIsTrancefert(): ?bool
  98.     {
  99.         return $this->isTrancefert;
  100.     }
  101.     public function setIsTrancefert(?bool $isTrancefert): self
  102.     {
  103.         $this->isTrancefert $isTrancefert;
  104.         return $this;
  105.     }
  106.     public function getIsReturn(): ?bool
  107.     {
  108.         return $this->isReturn;
  109.     }
  110.     public function setIsReturn(?bool $isReturn): self
  111.     {
  112.         $this->isReturn $isReturn;
  113.         return $this;
  114.     }
  115.     public function getLocation(): ?Location
  116.     {
  117.         return $this->location;
  118.     }
  119.     public function setLocation(?Location $location): self
  120.     {
  121.         $this->location $location;
  122.         return $this;
  123.     }
  124. }