<?php
namespace App\Entity;
use App\Repository\HistoriqueinterventionRepository;
use DateTimeInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: HistoriqueinterventionRepository::class)]
class Historiqueintervention
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $fin = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nbrheur = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prixheure = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prix = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prixtransport = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $netapayer = null;
#[ORM\ManyToMany(targetEntity: User::class, inversedBy: 'historiqueinterventions')]
private Collection $technicien;
#[ORM\ManyToOne(inversedBy: 'historiqueinterventions')]
private ?Client $client = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $reff = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $commentaire = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $type = null;
#[ORM\ManyToMany(targetEntity: Messageerreur::class, inversedBy: 'historiqueinterventions')]
private Collection $messageerreur;
#[ORM\Column(length: 255, nullable: true)]
private ?string $numseriemachine = null;
#[ORM\ManyToOne(inversedBy: 'historiqueinterventions')]
private ?Devis $devis = null;
#[ORM\ManyToOne(inversedBy: 'historiqueinterventions')]
private ?Machine $typemachine = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $montantht = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $qte = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $tvaautre = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $tva = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $totalttc = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $timbre = null;
#[ORM\ManyToOne(inversedBy: 'historiqueinterventions')]
private ?Gestionmachines $nummachine = null;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'historiqueinterventions')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private ?User $user = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $datecreation = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $debut = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $idoldintervention = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $designation = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $dateinter = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $jours = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $debutrepos = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $finrepos = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nbhrrepos = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prixjours = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $totheure = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $montantjours = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $statut = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $typesmachines = null;
#[ORM\Column(nullable: true)]
private ?array $solutionIds = null;
public function __construct()
{
$this->technicien = new ArrayCollection();
$this->messageerreur = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getFin(): ?DateTimeInterface
{
return $this->fin;
}
public function setFin(?DateTimeInterface $fin): static
{
$this->fin = $fin;
return $this;
}
public function getNbrheur(): ?string
{
return $this->nbrheur;
}
public function setNbrheur(?string $nbrheur): static
{
$this->nbrheur = $nbrheur;
return $this;
}
public function getPrixheure(): ?string
{
return $this->prixheure;
}
public function setPrixheure(?string $prixheure): static
{
$this->prixheure = $prixheure;
return $this;
}
public function getPrix(): ?string
{
return $this->prix;
}
public function setPrix(?string $prix): static
{
$this->prix = $prix;
return $this;
}
public function getPrixtransport(): ?string
{
return $this->prixtransport;
}
public function setPrixtransport(?string $prixtransport): static
{
$this->prixtransport = $prixtransport;
return $this;
}
public function getNetapayer(): ?string
{
return $this->netapayer;
}
public function setNetapayer(?string $netapayer): static
{
$this->netapayer = $netapayer;
return $this;
}
/**
* @return Collection<int, User>
*/
public function getTechnicien(): Collection
{
return $this->technicien;
}
public function addTechnicien(User $technicien): static
{
if (!$this->technicien->contains($technicien)) {
$this->technicien->add($technicien);
}
return $this;
}
public function removeTechnicien(User $technicien): static
{
$this->technicien->removeElement($technicien);
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(?Client $client): static
{
$this->client = $client;
return $this;
}
public function getReff(): ?string
{
return $this->reff;
}
public function setReff(?string $reff): static
{
$this->reff = $reff;
return $this;
}
public function getCommentaire(): ?string
{
return $this->commentaire;
}
public function setCommentaire(?string $commentaire): static
{
$this->commentaire = $commentaire;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): static
{
$this->type = $type;
return $this;
}
/**
* @return Collection<int, Messageerreur>
*/
public function getMessageerreur(): Collection
{
return $this->messageerreur;
}
public function addMessageerreur(Messageerreur $messageerreur): static
{
if (!$this->messageerreur->contains($messageerreur)) {
$this->messageerreur->add($messageerreur);
}
return $this;
}
public function removeMessageerreur(Messageerreur $messageerreur): static
{
$this->messageerreur->removeElement($messageerreur);
return $this;
}
public function getNumseriemachine(): ?string
{
return $this->numseriemachine;
}
public function setNumseriemachine(?string $numseriemachine): static
{
$this->numseriemachine = $numseriemachine;
return $this;
}
public function getDevis(): ?Devis
{
return $this->devis;
}
public function setDevis(?Devis $devis): static
{
$this->devis = $devis;
return $this;
}
public function getTypemachine(): ?Machine
{
return $this->typemachine;
}
public function setTypemachine(?Machine $typemachine): static
{
$this->typemachine = $typemachine;
return $this;
}
public function getMontantht(): ?string
{
return $this->montantht;
}
public function setMontantht(?string $montantht): static
{
$this->montantht = $montantht;
return $this;
}
public function getQte(): ?string
{
return $this->qte;
}
public function setQte(?string $qte): static
{
$this->qte = $qte;
return $this;
}
public function getTvaautre(): ?string
{
return $this->tvaautre;
}
public function setTvaautre(?string $tvaautre): static
{
$this->tvaautre = $tvaautre;
return $this;
}
public function getTva(): ?string
{
return $this->tva;
}
public function setTva(?string $tva): static
{
$this->tva = $tva;
return $this;
}
public function getTotalttc(): ?string
{
return $this->totalttc;
}
public function setTotalttc(?string $totalttc): static
{
$this->totalttc = $totalttc;
return $this;
}
public function getTimbre(): ?string
{
return $this->timbre;
}
public function setTimbre(?string $timbre): static
{
$this->timbre = $timbre;
return $this;
}
public function getNummachine(): ?Gestionmachines
{
return $this->nummachine;
}
public function setNummachine(?Gestionmachines $nummachine): static
{
$this->nummachine = $nummachine;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): void
{
$this->user = $user;
}
public function getDatecreation(): ?DateTimeInterface
{
return $this->datecreation;
}
public function setDatecreation(?DateTimeInterface $datecreation): static
{
$this->datecreation = $datecreation;
return $this;
}
public function getDebut(): ?DateTimeInterface
{
return $this->debut;
}
public function setDebut(?DateTimeInterface $debut): static
{
$this->debut = $debut;
return $this;
}
public function getIdoldintervention(): ?string
{
return $this->idoldintervention;
}
public function setIdoldintervention(?string $idoldintervention): static
{
$this->idoldintervention = $idoldintervention;
return $this;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(?string $designation): static
{
$this->designation = $designation;
return $this;
}
public function getDateinter(): ?DateTimeInterface
{
return $this->dateinter;
}
public function setDateinter(?DateTimeInterface $dateinter): static
{
$this->dateinter = $dateinter;
return $this;
}
public function getJours(): ?string
{
return $this->jours;
}
public function setJours(?string $jours): static
{
$this->jours = $jours;
return $this;
}
public function getDebutrepos(): ?DateTimeInterface
{
return $this->debutrepos;
}
public function setDebutrepos(?DateTimeInterface $debutrepos): static
{
$this->debutrepos = $debutrepos;
return $this;
}
public function getFinrepos(): ?DateTimeInterface
{
return $this->finrepos;
}
public function setFinrepos(?DateTimeInterface $finrepos): static
{
$this->finrepos = $finrepos;
return $this;
}
public function getNbhrrepos(): ?string
{
return $this->nbhrrepos;
}
public function setNbhrrepos(?string $nbhrrepos): static
{
$this->nbhrrepos = $nbhrrepos;
return $this;
}
public function getPrixjours(): ?string
{
return $this->prixjours;
}
public function setPrixjours(?string $prixjours): static
{
$this->prixjours = $prixjours;
return $this;
}
public function getTotheure(): ?string
{
return $this->totheure;
}
public function setTotheure(?string $totheure): static
{
$this->totheure = $totheure;
return $this;
}
public function getMontantjours(): ?string
{
return $this->montantjours;
}
public function setMontantjours(?string $montantjours): static
{
$this->montantjours = $montantjours;
return $this;
}
public function getStatut(): ?string
{
return $this->statut;
}
public function setStatut(?string $statut): static
{
$this->statut = $statut;
return $this;
}
public function getTypesmachines(): ?string
{
return $this->typesmachines;
}
public function setTypesmachines(?string $typesmachines): static
{
$this->typesmachines = $typesmachines;
return $this;
}
public function getSolutionIds(): ?array
{
return $this->solutionIds;
}
public function setSolutionIds(?array $solutionIds): static
{
$this->solutionIds = $solutionIds;
return $this;
}
}