src/Entity/Management/Subscription/Mission.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Management\Subscription;
  3. use App\Entity\Event\Training\Pack;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * Formule
  9.  *
  10.  * @ORM\Table(name="admin_mission")
  11.  * @ORM\Entity(repositoryClass="App\Repository\Management\Subscription\MissionRepository")
  12.  */
  13. class Mission extends Offer
  14. {
  15.     /**
  16.      * @ORM\Column(type="float",nullable=true)
  17.      *
  18.      */
  19.     private $oldPrice;
  20.     /**
  21.      * @ORM\Column(type="integer",nullable=true)
  22.      *
  23.      */
  24.     private $nbrDis;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="version", type="string", length=255,nullable=true)
  29.      */
  30.     private $version;
  31.     /**
  32.      * @var boolean
  33.      * @ORM\Column(type="boolean",options={"default":0})
  34.      */
  35.     private $bestChoice;
  36.     /**
  37.      *
  38.      * @ORM\ManyToMany(targetEntity="App\Entity\Event\Training\Pack")
  39.      */
  40.     private $packs;
  41.     public function __construct()
  42.     {
  43.         parent::__construct();
  44.     }
  45.     /**
  46.      * @return mixed
  47.      */
  48.     public function getOldPrice()
  49.     {
  50.         return $this->oldPrice;
  51.     }
  52.     /**
  53.      * @param mixed $oldPrice
  54.      */
  55.     public function setOldPrice($oldPrice): void
  56.     {
  57.         $this->oldPrice = $oldPrice;
  58.     }
  59.     /**
  60.      * @return mixed
  61.      */
  62.     public function getNbrDis()
  63.     {
  64.         return $this->nbrDis;
  65.     }
  66.     /**
  67.      * @param mixed $nbrDis
  68.      */
  69.     public function setNbrDis($nbrDis): void
  70.     {
  71.         $this->nbrDis = $nbrDis;
  72.     }
  73.     public function getMonthValid()
  74.     {
  75.         return null;
  76.     }
  77.     public function getPacks()
  78.     {
  79.         return $this->packs;
  80.     }
  81.     public function setPacks(ArrayCollection $packs): void
  82.     {
  83.         $this->packs = $packs;
  84.     }
  85.     public function addPacks(Pack $packs): void
  86.     {
  87.         if(!$this->packs->contains($packs))
  88.             $this->packs[] = $packs;
  89.     }
  90.     public function getRole(){
  91.     }
  92.     public function getVersion(): ?string
  93.     {
  94.         return $this->version;
  95.     }
  96.     public function setVersion(?string $version): void
  97.     {
  98.         $this->version = $version;
  99.     }
  100.     public function isBestChoice(): bool
  101.     {
  102.         return $this->bestChoice;
  103.     }
  104.     public function setBestChoice(bool $bestChoice): void
  105.     {
  106.         $this->bestChoice = $bestChoice;
  107.     }
  108. }