<?phpnamespace App\Entity;use App\Repository\CautionRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CautionRepository::class) */class Caution{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $titre; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="cautions") */ private $product; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="cautions") */ private $user; /** * @ORM\Column(type="float", nullable=true) */ private $montant; /** * @ORM\Column(type="boolean", nullable=true) */ private $isTrancefert; /** * @ORM\Column(type="boolean", nullable=true) */ private $isReturn; /** * @ORM\ManyToOne(targetEntity=Location::class, inversedBy="cautions") */ private $location; public function getId(): ?int { return $this->id; } public function getTitre(): ?string { return $this->titre; } public function setTitre(string $titre): self { $this->titre = $titre; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; 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 getMontant(): ?float { return $this->montant; } public function setMontant(?float $montant): self { $this->montant = $montant; return $this; } public function getIsTrancefert(): ?bool { return $this->isTrancefert; } public function setIsTrancefert(?bool $isTrancefert): self { $this->isTrancefert = $isTrancefert; return $this; } public function getIsReturn(): ?bool { return $this->isReturn; } public function setIsReturn(?bool $isReturn): self { $this->isReturn = $isReturn; return $this; } public function getLocation(): ?Location { return $this->location; } public function setLocation(?Location $location): self { $this->location = $location; return $this; }}