<?php
namespace App\Entity;
use App\Entity\TimestampableTrait;
use App\Repository\AssuranceRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=AssuranceRepository::class)
*/
class Assurance
{
use TimestampableTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dateDebut;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dateFin;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $couverture;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $franchise;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $conditionsSpecifiques;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $beneficiaires;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $contractNumber;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $historiqueReclamations;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $policeNumber;
/**
* @ORM\ManyToOne(targetEntity=Vehicle::class, inversedBy="assurances")
*/
private $vehicle;
/**
* @ORM\ManyToOne(targetEntity=Transporteur::class, inversedBy="assurances")
*/
private $transporteur;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getDateDebut(): ?\DateTimeInterface
{
return $this->dateDebut;
}
public function setDateDebut(?\DateTimeInterface $dateDebut): self
{
$this->dateDebut = $dateDebut;
return $this;
}
public function getDateFin(): ?\DateTimeInterface
{
return $this->dateFin;
}
public function setDateFin(?\DateTimeInterface $dateFin): self
{
$this->dateFin = $dateFin;
return $this;
}
public function getCouverture(): ?string
{
return $this->couverture;
}
public function setCouverture(?string $couverture): self
{
$this->couverture = $couverture;
return $this;
}
public function getFranchise(): ?float
{
return $this->franchise;
}
public function setFranchise(?float $franchise): self
{
$this->franchise = $franchise;
return $this;
}
public function getConditionsSpecifiques(): ?string
{
return $this->conditionsSpecifiques;
}
public function setConditionsSpecifiques(?string $conditionsSpecifiques): self
{
$this->conditionsSpecifiques = $conditionsSpecifiques;
return $this;
}
public function getBeneficiaires(): ?string
{
return $this->beneficiaires;
}
public function setBeneficiaires(?string $beneficiaires): self
{
$this->beneficiaires = $beneficiaires;
return $this;
}
public function getContractNumber(): ?string
{
return $this->contractNumber;
}
public function setContractNumber(?string $contractNumber): self
{
$this->contractNumber = $contractNumber;
return $this;
}
public function getHistoriqueReclamations(): ?string
{
return $this->historiqueReclamations;
}
public function setHistoriqueReclamations(?string $historiqueReclamations): self
{
$this->historiqueReclamations = $historiqueReclamations;
return $this;
}
public function getVehicle(): ?Vehicle
{
return $this->vehicle;
}
public function setVehicle(?Vehicle $vehicle): self
{
$this->vehicle = $vehicle;
return $this;
}
public function getTransporteur(): ?Transporteur
{
return $this->transporteur;
}
public function setTransporteur(?Transporteur $transporteur): self
{
$this->transporteur = $transporteur;
return $this;
}
public function getPoliceNumber(): ?string
{
return $this->policeNumber;
}
public function setPoliceNumber(?string $policeNumber): self
{
$this->policeNumber = $policeNumber;
return $this;
}
}