src/Entity/System/FuturePack.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\FuturePackRepository")
  6.  *
  7.  * @ORM\Table(name="ps_future_pack")
  8.  */
  9. class FuturePack
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @ORM\Column(type="integer", name="id_future_pack")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var Customer|null
  23.      *
  24.      * @ORM\ManyToOne(targetEntity="Customer", inversedBy="futurePacks")
  25.      *
  26.      * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=true)
  27.      */
  28.     private $customer;
  29.     /**
  30.      * @var int|null
  31.      *
  32.      * @ORM\Column(type="integer", nullable=true)
  33.      */
  34.     private $idPack;
  35.     /**
  36.      * @var \DateTime|null
  37.      *
  38.      * @ORM\Column(type="date", nullable=true)
  39.      */
  40.     private $dateCsv;
  41.     /**
  42.      * @var bool|null
  43.      *
  44.      * @ORM\Column(type="boolean", nullable=true, options={"default":0})
  45.      */
  46.     private $active;
  47.     public function __construct()
  48.     {
  49.         $this->active false;
  50.     }
  51.     /**
  52.      * @return int
  53.      */
  54.     public function getId(): int
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * @param int $id
  60.      *
  61.      * @return FuturePack
  62.      */
  63.     public function setId(int $id): FuturePack
  64.     {
  65.         $this->id $id;
  66.         return $this;
  67.     }
  68.     /**
  69.      * @return Customer|null
  70.      */
  71.     public function getCustomer(): ?Customer
  72.     {
  73.         return $this->customer;
  74.     }
  75.     /**
  76.      * @param Customer|null $customer
  77.      *
  78.      * @return FuturePack
  79.      */
  80.     public function setCustomer(?Customer $customer): FuturePack
  81.     {
  82.         $this->customer $customer;
  83.         return $this;
  84.     }
  85.     /**
  86.      * @return int|null
  87.      */
  88.     public function getIdPack(): ?int
  89.     {
  90.         return $this->idPack;
  91.     }
  92.     /**
  93.      * @param int|null $idPack
  94.      *
  95.      * @return FuturePack
  96.      */
  97.     public function setIdPack(?int $idPack): FuturePack
  98.     {
  99.         $this->idPack $idPack;
  100.         return $this;
  101.     }
  102.     /**
  103.      * @return \DateTime|null
  104.      */
  105.     public function getDateCsv(): ?\DateTime
  106.     {
  107.         return $this->dateCsv;
  108.     }
  109.     /**
  110.      * @param \DateTime|null $dateCsv
  111.      *
  112.      * @return FuturePack
  113.      */
  114.     public function setDateCsv(?\DateTime $dateCsv): FuturePack
  115.     {
  116.         $this->dateCsv $dateCsv;
  117.         return $this;
  118.     }
  119.     /**
  120.      * @return bool|null
  121.      */
  122.     public function isActive(): ?bool
  123.     {
  124.         return $this->active;
  125.     }
  126.     /**
  127.      * @param bool|null $active
  128.      *
  129.      * @return FuturePack
  130.      */
  131.     public function setActive(?bool $active): FuturePack
  132.     {
  133.         $this->active $active;
  134.         return $this;
  135.     }
  136. }