src/Entity/AdminFinance/Vehicule/VehiculeMouvement.php line 13
<?phpnamespace App\Entity\AdminFinance\Vehicule;use App\Entity\AdminFinance\Bank\BankCompte;use App\Entity\AdminFinance\Bank\BankMouvementCategorie;use App\Repository\AdminFinance\Vehicule\VehiculeMouvementRepository;use Doctrine\DBAL\Types\Types;;use Doctrine\ORM\Mapping as ORM;#[ORM\Table(name:'vehicule_mouvement')]#[ORM\Entity(repositoryClass: VehiculeMouvementRepository::class)]class VehiculeMouvement{CONST CATEGORY_PARENT = 3;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $date = null;#[ORM\Column]private ?int $km = null;#[ORM\Column]private ?float $litre = null;#[ORM\Column]private ?float $prixLitre = null;#[ORM\Column(length: 255, nullable: true)]private $commentaire;#[ORM\Column]private ?float $montant = null;#[ORM\Column]private ?bool $checked;#[ORM\ManyToOne(targetEntity:BankCompte::class, inversedBy: 'vehiculeMouvementDebit')]private ?BankCompte $compteDebit = null;#[ORM\ManyToOne(targetEntity:Voiture::class, inversedBy: 'mouvements')]#[ORM\JoinColumn(nullable: false)]private Voiture $voiture;#[ORM\ManyToOne(targetEntity:BankMouvementCategorie::class)]#[ORM\JoinColumn(nullable: false)]private BankMouvementCategorie $categorie;public function __construct() {$this->date = new \DateTime();$this->checked = false;}public function getId(): ?int{return $this->id;}public function getDate(): ?\DateTimeInterface{return $this->date;}public function setDate(\DateTimeInterface $date): self{$this->date = $date;return $this;}public function getKm(): ?int{return $this->km;}public function setKm(int $km): self{$this->km = $km;return $this;}public function getLitre(): ?float{return $this->litre;}public function setLitre(float $litre): self{$this->litre = $litre;return $this;}public function getPrixLitre(): ?float{return $this->prixLitre;}public function setPrixLitre(float $prixLitre): self{$this->prixLitre = $prixLitre;return $this;}public function getCommentaire(): ?string{return $this->commentaire;}public function setCommentaire(?string $commentaire): self{$this->commentaire = $commentaire;return $this;}public function getVoiture(): ?Voiture{return $this->voiture;}public function setVoiture(?Voiture $voiture): self{$this->voiture = $voiture;return $this;}public function getCompteDebit(): ?BankCompte{return $this->compteDebit;}public function setCompteDebit(?BankCompte $compteDebit): self{$this->compteDebit = $compteDebit;return $this;}function getMontant() {return $this->montant;}function getChecked() {return $this->checked;}function setMontant($montant) {$this->montant = $montant;}function setChecked($checked) {$this->checked = $checked;}public function getClass() {return self::class;}function getCategorie() {return $this->categorie;}function setCategorie($categorie) {$this->categorie = $categorie;}public function isChecked(): ?bool{return $this->checked;}}