src/Entity/Intervention.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InterventionRepository;
  4. use DateTimeInterface;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassInterventionRepository::class)]
  10. class Intervention
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  17.     private ?DateTimeInterface $dateinter null;
  18.     #[ORM\Column(typeTypes::TIME_MUTABLEnullabletrue)]
  19.     private ?DateTimeInterface $debut null;
  20.     #[ORM\Column(typeTypes::TIME_MUTABLEnullabletrue)]
  21.     private ?DateTimeInterface $fin null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $nbrheur null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $prixheure null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $prix null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $prixtransport null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $netapayer null;
  32.     #[ORM\ManyToMany(targetEntityUser::class, inversedBy'interventionstec')]
  33.     private Collection $technicien;
  34.     #[ORM\ManyToOne(inversedBy'intervention')]
  35.     private ?Client $client null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $reff null;
  38.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  39.     private ?string $commentaire null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $type null;
  42.     #[ORM\ManyToMany(targetEntityMessageerreur::class, inversedBy'interventions')]
  43.     private Collection $messageerreur;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $numseriemachine null;
  46.     #[ORM\ManyToOne(inversedBy'intervention')]
  47.     private ?Devis $devis null;
  48.     #[ORM\ManyToOne(inversedBy'interventions')]
  49.     private ?Machine $typemachine null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $montantht null;
  52.     #[ORM\Column(length255nullabletrue)]
  53.     private ?string $tvaautre null;
  54.     #[ORM\Column(length255nullabletrue)]
  55.     private ?string $tva null;
  56.     #[ORM\Column(length255nullabletrue)]
  57.     private ?string $totalttc null;
  58.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  59.     private ?string $designation null;
  60.     #[ORM\Column(length255nullabletrue)]
  61.     private ?string $timbre null;
  62.     #[ORM\ManyToOne(inversedBy'interventions')]
  63.     private ?Gestionmachines $nummachine null;
  64.     #[ORM\ManyToOne(inversedBy'interventions')]
  65.     private ?User $user null;
  66.     #[ORM\Column(nullabletrue)]
  67.     private ?bool $lu null;
  68.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  69.     private ?DateTimeInterface $datecreation null;
  70.     #[ORM\Column(length255nullabletrue)]
  71.     private ?string $jours null;
  72.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  73.     private ?DateTimeInterface $debutrepos null;
  74.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  75.     private ?DateTimeInterface $finrepos null;
  76.     #[ORM\Column(length255nullabletrue)]
  77.     private ?string $nbhrrepos null;
  78.     #[ORM\Column(length255nullabletrue)]
  79.     private ?string $prixjours null;
  80.     #[ORM\Column(length255nullabletrue)]
  81.     private ?string $totheure null;
  82.     #[ORM\Column(length255nullabletrue)]
  83.     private ?string $montantjours null;
  84.     #[ORM\Column(length255nullabletrue)]
  85.     private ?string $idintervold null;
  86.     #[ORM\Column(length255nullabletrue)]
  87.     private ?string $typesmachines null;
  88.     #[ORM\Column(nullabletrue)]
  89.     private ?array $solutionIds null;
  90.     #[ORM\OneToMany(mappedBy'intervention'targetEntityMachineIntervention::class)]
  91.     private Collection $machineInterventions;
  92.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  93.     private array $machineIds = [];
  94.     #[ORM\Column(length255nullabletrue)]
  95.     private ?string $statut null;
  96.     public function __construct()
  97.     {
  98.         $this->technicien = new ArrayCollection();
  99.         $this->messageerreur = new ArrayCollection();
  100.         $this->machineInterventions = new ArrayCollection();
  101.     }
  102.     public function getId(): ?int
  103.     {
  104.         return $this->id;
  105.     }
  106.     public function getDateinter(): ?DateTimeInterface
  107.     {
  108.         return $this->dateinter;
  109.     }
  110.     public function setDateinter(DateTimeInterface $dateinter): self
  111.     {
  112.         $this->dateinter $dateinter;
  113.         return $this;
  114.     }
  115.     public function getDebut(): ?DateTimeInterface
  116.     {
  117.         return $this->debut;
  118.     }
  119.     public function setDebut(?DateTimeInterface $debut): self
  120.     {
  121.         $this->debut $debut;
  122.         return $this;
  123.     }
  124.     public function getFin(): ?DateTimeInterface
  125.     {
  126.         return $this->fin;
  127.     }
  128.     public function setFin(?DateTimeInterface $fin): self
  129.     {
  130.         $this->fin $fin;
  131.         return $this;
  132.     }
  133.     public function getNbrheur(): ?string
  134.     {
  135.         return $this->nbrheur;
  136.     }
  137.     public function setNbrheur(?string $nbrheur): self
  138.     {
  139.         $this->nbrheur $nbrheur;
  140.         return $this;
  141.     }
  142.     public function getPrixheure(): ?string
  143.     {
  144.         return $this->prixheure;
  145.     }
  146.     public function setPrixheure(?string $prixheure): self
  147.     {
  148.         $this->prixheure $prixheure;
  149.         return $this;
  150.     }
  151.     public function getPrix(): ?string
  152.     {
  153.         return $this->prix;
  154.     }
  155.     public function setPrix(?string $prix): self
  156.     {
  157.         $this->prix $prix;
  158.         return $this;
  159.     }
  160.     public function getPrixtransport(): ?string
  161.     {
  162.         return $this->prixtransport;
  163.     }
  164.     public function setPrixtransport(?string $prixtransport): self
  165.     {
  166.         $this->prixtransport $prixtransport;
  167.         return $this;
  168.     }
  169.     public function getNetapayer(): ?string
  170.     {
  171.         return $this->netapayer;
  172.     }
  173.     public function setNetapayer(?string $netapayer): self
  174.     {
  175.         $this->netapayer $netapayer;
  176.         return $this;
  177.     }
  178.     /**
  179.      * @return Collection<int, User>
  180.      */
  181.     public function getTechnicien(): Collection
  182.     {
  183.         return $this->technicien;
  184.     }
  185.     public function addTechnicien(User $technicien): self
  186.     {
  187.         if (!$this->technicien->contains($technicien)) {
  188.             $this->technicien->add($technicien);
  189.         }
  190.         return $this;
  191.     }
  192.     public function removeTechnicien(User $technicien): self
  193.     {
  194.         $this->technicien->removeElement($technicien);
  195.         return $this;
  196.     }
  197.     public function getClient(): ?Client
  198.     {
  199.         return $this->client;
  200.     }
  201.     public function setClient(?Client $client): self
  202.     {
  203.         $this->client $client;
  204.         return $this;
  205.     }
  206.     public function getReff(): ?string
  207.     {
  208.         return $this->reff;
  209.     }
  210.     public function setReff(?string $reff): self
  211.     {
  212.         $this->reff $reff;
  213.         return $this;
  214.     }
  215.     public function getCommentaire(): ?string
  216.     {
  217.         return $this->commentaire;
  218.     }
  219.     public function setCommentaire(string $commentaire): static
  220.     {
  221.         $this->commentaire $commentaire;
  222.         return $this;
  223.     }
  224.     public function getType(): ?string
  225.     {
  226.         return $this->type;
  227.     }
  228.     public function setType(?string $type): static
  229.     {
  230.         $this->type $type;
  231.         return $this;
  232.     }
  233.     /**
  234.      * @return Collection<int, Messageerreur>
  235.      */
  236.     public function getMessageerreur(): Collection
  237.     {
  238.         return $this->messageerreur;
  239.     }
  240.     public function addMessageerreur(Messageerreur $messageerreur): static
  241.     {
  242.         if (!$this->messageerreur->contains($messageerreur)) {
  243.             $this->messageerreur->add($messageerreur);
  244.         }
  245.         return $this;
  246.     }
  247.     public function removeMessageerreur(Messageerreur $messageerreur): static
  248.     {
  249.         $this->messageerreur->removeElement($messageerreur);
  250.         return $this;
  251.     }
  252.     public function getNumseriemachine(): ?string
  253.     {
  254.         return $this->numseriemachine;
  255.     }
  256.     public function setNumseriemachine(?string $numseriemachine): static
  257.     {
  258.         $this->numseriemachine $numseriemachine;
  259.         return $this;
  260.     }
  261.     public function getDevis(): ?Devis
  262.     {
  263.         return $this->devis;
  264.     }
  265.     public function setDevis(?Devis $devis): static
  266.     {
  267.         $this->devis $devis;
  268.         return $this;
  269.     }
  270.     public function getTypemachine(): ?Machine
  271.     {
  272.         return $this->typemachine;
  273.     }
  274.     public function setTypemachine(?Machine $typemachine): static
  275.     {
  276.         $this->typemachine $typemachine;
  277.         return $this;
  278.     }
  279.     public function getMontantht(): ?string
  280.     {
  281.         return $this->montantht;
  282.     }
  283.     public function setMontantht(?string $montantht): static
  284.     {
  285.         $this->montantht $montantht;
  286.         return $this;
  287.     }
  288.     public function getTvaautre(): ?string
  289.     {
  290.         return $this->tvaautre;
  291.     }
  292.     public function setTvaautre(?string $tvaautre): static
  293.     {
  294.         $this->tvaautre $tvaautre;
  295.         return $this;
  296.     }
  297.     public function getTva(): ?string
  298.     {
  299.         return $this->tva;
  300.     }
  301.     public function setTva(?string $tva): static
  302.     {
  303.         $this->tva $tva;
  304.         return $this;
  305.     }
  306.     public function getTotalttc(): ?string
  307.     {
  308.         return $this->totalttc;
  309.     }
  310.     public function setTotalttc(?string $totalttc): static
  311.     {
  312.         $this->totalttc $totalttc;
  313.         return $this;
  314.     }
  315.     public function getDesignation(): ?string
  316.     {
  317.         return $this->designation;
  318.     }
  319.     public function setDesignation(?string $designation): static
  320.     {
  321.         $this->designation $designation;
  322.         return $this;
  323.     }
  324.     public function getTimbre(): ?string
  325.     {
  326.         return $this->timbre;
  327.     }
  328.     public function setTimbre(?string $timbre): static
  329.     {
  330.         $this->timbre $timbre;
  331.         return $this;
  332.     }
  333.     public function getNummachine(): ?Gestionmachines
  334.     {
  335.         return $this->nummachine;
  336.     }
  337.     public function setNummachine(?Gestionmachines $nummachine): static
  338.     {
  339.         $this->nummachine $nummachine;
  340.         return $this;
  341.     }
  342.     public function getUser(): ?User
  343.     {
  344.         return $this->user;
  345.     }
  346.     public function setUser(?User $user): static
  347.     {
  348.         $this->user $user;
  349.         return $this;
  350.     }
  351.     public function isLu(): ?bool
  352.     {
  353.         return $this->lu;
  354.     }
  355.     public function setLu(?bool $lu): static
  356.     {
  357.         $this->lu $lu;
  358.         return $this;
  359.     }
  360.     public function getDatecreation(): ?DateTimeInterface
  361.     {
  362.         return $this->datecreation;
  363.     }
  364.     public function setDatecreation(?DateTimeInterface $datecreation): static
  365.     {
  366.         $this->datecreation $datecreation;
  367.         return $this;
  368.     }
  369.     public function getJours(): ?string
  370.     {
  371.         return $this->jours;
  372.     }
  373.     public function setJours(?string $jours): static
  374.     {
  375.         $this->jours $jours;
  376.         return $this;
  377.     }
  378.     public function getDebutrepos(): ?DateTimeInterface
  379.     {
  380.         return $this->debutrepos;
  381.     }
  382.     public function setDebutrepos(?DateTimeInterface $debutrepos): static
  383.     {
  384.         $this->debutrepos $debutrepos;
  385.         return $this;
  386.     }
  387.     public function getFinrepos(): ?DateTimeInterface
  388.     {
  389.         return $this->finrepos;
  390.     }
  391.     public function setFinrepos(?DateTimeInterface $finrepos): static
  392.     {
  393.         $this->finrepos $finrepos;
  394.         return $this;
  395.     }
  396.     public function getNbhrrepos(): ?string
  397.     {
  398.         return $this->nbhrrepos;
  399.     }
  400.     public function setNbhrrepos(?string $nbhrrepos): static
  401.     {
  402.         $this->nbhrrepos $nbhrrepos;
  403.         return $this;
  404.     }
  405.     public function getPrixjours(): ?string
  406.     {
  407.         return $this->prixjours;
  408.     }
  409.     public function setPrixjours(?string $prixjours): static
  410.     {
  411.         $this->prixjours $prixjours;
  412.         return $this;
  413.     }
  414.     public function getTotheure(): ?string
  415.     {
  416.         return $this->totheure;
  417.     }
  418.     public function setTotheure(?string $totheure): static
  419.     {
  420.         $this->totheure $totheure;
  421.         return $this;
  422.     }
  423.     public function getMontantjours(): ?string
  424.     {
  425.         return $this->montantjours;
  426.     }
  427.     public function setMontantjours(?string $montantjours): static
  428.     {
  429.         $this->montantjours $montantjours;
  430.         return $this;
  431.     }
  432.     public function getIdintervold(): ?string
  433.     {
  434.         return $this->idintervold;
  435.     }
  436.     public function setIdintervold(?string $idintervold): static
  437.     {
  438.         $this->idintervold $idintervold;
  439.         return $this;
  440.     }
  441.     public function getTypesmachines(): ?string
  442.     {
  443.         return $this->typesmachines;
  444.     }
  445.     public function setTypesmachines(?string $typesmachines): static
  446.     {
  447.         $this->typesmachines $typesmachines;
  448.         return $this;
  449.     }
  450.     public function getSolutionIds(): ?array
  451.     {
  452.         return $this->solutionIds;
  453.     }
  454.     public function setSolutionIds(?array $solutionIds): static
  455.     {
  456.         $this->solutionIds $solutionIds;
  457.         return $this;
  458.     }
  459.     /**
  460.      * @return Collection<int, MachineIntervention>
  461.      */
  462.     public function getMachineInterventions(): Collection
  463.     {
  464.         return $this->machineInterventions;
  465.     }
  466.     public function addMachineIntervention(MachineIntervention $machineIntervention): self
  467.     {
  468.         if (!$this->machineInterventions->contains($machineIntervention)) {
  469.             $this->machineInterventions->add($machineIntervention);
  470.             $machineIntervention->setIntervention($this);
  471.         }
  472.         return $this;
  473.     }
  474.     public function removeMachineIntervention(MachineIntervention $machineIntervention): self
  475.     {
  476.         if ($this->machineInterventions->removeElement($machineIntervention)) {
  477.             // set the owning side to null (unless already changed)
  478.             if ($machineIntervention->getIntervention() === $this) {
  479.                 $machineIntervention->setIntervention(null);
  480.             }
  481.         }
  482.         return $this;
  483.     }
  484.     public function getMachineIds(): array
  485.     {
  486.         return $this->machineIds;
  487.     }
  488.     public function setMachineIds(?array $machineIds): self
  489.     {
  490.         $this->machineIds $machineIds;
  491.         return $this;
  492.     }
  493.     public function getStatut(): ?string
  494.     {
  495.         return $this->statut;
  496.     }
  497.     public function setStatut(?string $statut): self
  498.     {
  499.         $this->statut $statut;
  500.         return $this;
  501.     }
  502. }