src/Entity/Projets/ProjetActivite.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Projets;
  3. use App\Entity\GestionComerciale\Commande;
  4. use App\Entity\Kanban\Fiche;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * ProjetActivite
  8.  *
  9.  * @ORM\Table("projet__projet_activite")
  10.  * @ORM\Entity(repositoryClass="App\Repository\Projets\ProjetActiviteRepository")
  11.  */
  12. class ProjetActivite
  13. {
  14.     /**
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Projets\Activite", inversedBy="projetActivites")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $activite;
  25.     
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="projetActivites")
  28.      * @ORM\JoinColumn(nullable=true)
  29.      */
  30.     private $commande;
  31.     /**
  32.      * @ORM\Column(name="position", type="integer", nullable=true)
  33.      */
  34.     private $position;
  35.     /**
  36.      * @ORM\Column(name="pourcentage", type="float", length=255, nullable=true)
  37.      */
  38.     private $pourcentage;
  39.         /**
  40.      * @ORM\Column(name="statut", type="boolean", nullable=true)
  41.      */
  42.     private $statut;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\Kanban\Fiche", inversedBy="projetActivites", cascade={"persist"})
  45.      * @ORM\JoinColumn(nullable=true)
  46.      */
  47.     private $fiche;
  48.     public function getId(): int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function setPosition(?int $position): ProjetActivite
  53.     {
  54.         $this->position $position;
  55.         return $this;
  56.     }
  57.     public function getPosition(): ?int
  58.     {
  59.         return $this->position;
  60.     }
  61.     public function setActivite(?Activite $activite): ProjetActivite
  62.     {
  63.         $this->activite $activite;
  64.         return $this;
  65.     }
  66.     public function getActivite(): ?Activite
  67.     {
  68.         return $this->activite;
  69.     }
  70.     public function setCommande(?Commande $commande): ProjetActivite
  71.     {
  72.         $this->commande $commande;
  73.         return $this;
  74.     }
  75.     public function getCommande(): ?Commande
  76.     {
  77.         return $this->commande;
  78.     }
  79.     public function setPourcentage(?float $pourcentage): ProjetActivite
  80.     {
  81.         $this->pourcentage $pourcentage;
  82.         return $this;
  83.     }
  84.     public function getPourcentage(): ?float
  85.     {
  86.         return $this->pourcentage;
  87.     }
  88.     public function setStatut(?bool $statut): ProjetActivite
  89.     {
  90.         $this->statut $statut;
  91.         return $this;
  92.     }
  93.     public function getStatut(): ?bool
  94.     {
  95.         return $this->statut;
  96.     }
  97.     public function setFiche(?Fiche $fiche): ProjetActivite
  98.     {
  99.         $this->fiche $fiche;
  100.         return $this;
  101.     }
  102.     public function getFiche(): ?Fiche
  103.     {
  104.         return $this->fiche;
  105.     }
  106. }