src/Entity/Projets/ProjetUtilisateur.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Projets;
  3. use App\Entity\Articles\Article;
  4. use App\Entity\GestionComerciale\Commande;
  5. use App\Entity\Kanban\Fiche;
  6. use App\Entity\Notes\Note;
  7. use App\Entity\Utilisateur\Contact;
  8. use App\Entity\Utilisateur\Utilisateur;
  9. use DateTime;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Gedmo\Mapping\Annotation as Gedmo;
  12. use Symfony\Component\Validator\Constraints as Assert;
  13. use Doctrine\ORM\Mapping\Index;
  14. /**
  15.  * ProjetUtilisateur
  16.  *
  17.  * @ORM\Table(name="projet__projet_utilisateur")
  18.  * @ORM\Entity(repositoryClass="App\Repository\Projets\ProjetUtilisateurRepository")
  19.  */
  20. class ProjetUtilisateur
  21. {
  22.     /**
  23.      * @ORM\Column(name="id", type="integer")
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      */
  27.     private $id;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="projetsUtilisateur")
  30.      * @ORM\JoinColumn(nullable=true)
  31.      */
  32.     private $utilisateur;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Contact")
  35.      * @ORM\JoinColumn(nullable=true)
  36.      */
  37.     private $contact;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity="App\Entity\Projets\Projet")
  40.      * @ORM\JoinColumn(nullable=true)
  41.      */
  42.     private $projet;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande")
  45.      * @ORM\JoinColumn(nullable=true)
  46.      */
  47.     private $commande;
  48.     /**
  49.      * @ORM\Column(name="date", type="datetime", nullable=true)
  50.      */
  51.     private $date;
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\Kanban\Fiche", inversedBy="projetUtilisateurs")
  54.      * @ORM\JoinColumn(nullable=true)
  55.      */
  56.     private $fiche;
  57.     /**
  58.      * @ORM\ManyToOne(targetEntity="App\Entity\Notes\Note")
  59.      * @ORM\JoinColumn(nullable=true)
  60.      */
  61.     private $note;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article")
  64.      * @ORM\JoinColumn(nullable=true)
  65.      */
  66.     private $role;
  67.     public function __construct()
  68.     {
  69.         $this->date = new Datetime();
  70.     }
  71.     public function getId(): int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function setDate(?DateTime $date): ProjetUtilisateur
  76.     {
  77.         $this->date $date;
  78.         return $this;
  79.     }
  80.     public function getDate(): ?DateTime
  81.     {
  82.         return $this->date;
  83.     }
  84.     public function setUtilisateur(?Utilisateur $utilisateur): ProjetUtilisateur
  85.     {
  86.         $this->utilisateur $utilisateur;
  87.         return $this;
  88.     }
  89.     public function getUtilisateur(): ?Utilisateur
  90.     {
  91.         return $this->utilisateur;
  92.     }
  93.     public function setProjet(?Projet $projet): ProjetUtilisateur
  94.     {
  95.         $this->projet $projet;
  96.         return $this;
  97.     }
  98.     public function getProjet(): ?Projet
  99.     {
  100.         return $this->projet;
  101.     }
  102.     public function setContact(?Contact $contact): ProjetUtilisateur
  103.     {
  104.         $this->contact $contact;
  105.         return $this;
  106.     }
  107.     public function getContact(): ?Contact
  108.     {
  109.         return $this->contact;
  110.     }
  111.     public function setCommande(?Commande $commande): ProjetUtilisateur
  112.     {
  113.         $this->commande $commande;
  114.         return $this;
  115.     }
  116.     public function getCommande(): ?Commande
  117.     {
  118.         return $this->commande;
  119.     }
  120.     public function setFiche(?Fiche $fiche): ProjetUtilisateur
  121.     {
  122.         $this->fiche $fiche;
  123.         return $this;
  124.     }
  125.     public function getFiche(): ?Fiche
  126.     {
  127.         return $this->fiche;
  128.     }
  129.     public function setNote(?Note $note): ProjetUtilisateur
  130.     {
  131.         $this->note $note;
  132.         return $this;
  133.     }
  134.     public function getNote(): ?Note
  135.     {
  136.         return $this->note;
  137.     }
  138.     public function getRole(): ?Note
  139.     {
  140.         return $this->role;
  141.     }
  142.     public function setRole(?Article $role): ProjetUtilisateur
  143.     {
  144.         $this->role $role;
  145.         return $this;
  146.     }
  147. }