src/Entity/Utilisateur/HistoriqueIntervention.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Utilisateur;
  3. use App\Entity\GestionComerciale\Commande;
  4. use App\Entity\GestionComerciale\CommandeFournisseur;
  5. use App\Entity\GestionComerciale\Fabrication;
  6. use DateTime;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. /**
  11.  * HistoriqueIntervention
  12.  *
  13.  * @ORM\Table("utilisateur__historique_intervention")
  14.  * @ORM\Entity(repositoryClass="App\Repository\Utilisateur\HistoriqueInterventionRepository")
  15.  */
  16. class HistoriqueIntervention
  17. {
  18.     /**
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @ORM\Column(name="date", type="datetime", nullable=true)
  26.      */
  27.     private $date;
  28.     /**
  29.      * @ORM\Column(name="action", type="text", nullable=true)
  30.      */
  31.     private $action;
  32.     /**
  33.      * @ORM\Column(name="dateDebut", type="datetime", nullable=true)
  34.      */
  35.     private $dateDebut;
  36.     /**
  37.      * @ORM\Column(name="dateFin", type="datetime", nullable=true)
  38.      */
  39.     private $dateFin;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="historiqueIntervention")
  42.      * @ORM\JoinColumn(nullable=false)
  43.      */
  44.     private $utilisateur;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="historiqueIntervention")
  47.      * @ORM\JoinColumn(nullable=true)
  48.      */
  49.     private $commande;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Fabrication", inversedBy="historiqueIntervention")
  52.      * @ORM\JoinColumn(nullable=true)
  53.      */
  54.     private $fabrication;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\CommandeFournisseur", inversedBy="historiqueIntervention")
  57.      * @ORM\JoinColumn(nullable=true)
  58.      */
  59.     private $commandeFournisseur;
  60.     public function __construct()
  61.     {
  62.         $this->date = new Datetime();
  63.         $this->dateIntervention = new Datetime();
  64.     }
  65.     public function getId(): int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function setDate(?DateTime $date): HistoriqueIntervention
  70.     {
  71.         $this->date $date;
  72.         return $this;
  73.     }
  74.     public function getDate(): ?DateTime
  75.     {
  76.         return $this->date;
  77.     }
  78.     public function setDateDebut(?DateTime $dateDebut): HistoriqueIntervention
  79.     {
  80.         $this->dateDebut $dateDebut;
  81.         return $this;
  82.     }
  83.     public function getDateDebut(): ?DateTime
  84.     {
  85.         return $this->dateDebut;
  86.     }
  87.     public function setDateFin(?DateTime $dateFin): HistoriqueIntervention
  88.     {
  89.         $this->dateFin $dateFin;
  90.         return $this;
  91.     }
  92.     public function getDateFin(): ?DateTime
  93.     {
  94.         return $this->dateFin;
  95.     }
  96.     public function setAction(?string $action): HistoriqueIntervention
  97.     {
  98.         $this->action $action;
  99.         return $this;
  100.     }
  101.     public function getAction(): ?string
  102.     {
  103.         return $this->action;
  104.     }
  105.     public function setUtilisateur(?Utilisateur $utilisateur): HistoriqueIntervention
  106.     {
  107.         $this->utilisateur $utilisateur;
  108.         return $this;
  109.     }
  110.     public function getUtilisateur(): ?Utilisateur
  111.     {
  112.         return $this->utilisateur;
  113.     }
  114.     public function setCommande(?Commande $commande): HistoriqueIntervention
  115.     {
  116.         $this->commande $commande;
  117.         return $this;
  118.     }
  119.     public function getCommande(): ?Commande
  120.     {
  121.         return $this->commande;
  122.     }
  123.     public function setFabrication(?Fabrication $fabrication): HistoriqueIntervention
  124.     {
  125.         $this->fabrication $fabrication;
  126.         return $this;
  127.     }
  128.     public function getFabrication(): ?Fabrication
  129.     {
  130.         return $this->fabrication;
  131.     }
  132.     public function setCommandeFournisseur(?CommandeFournisseur $commandeFournisseur): HistoriqueIntervention
  133.     {
  134.         $this->commandeFournisseur $commandeFournisseur;
  135.         return $this;
  136.     }
  137.     public function getCommandeFournisseur(): ?CommandeFournisseur
  138.     {
  139.         return $this->commandeFournisseur;
  140.     }
  141. }