src/Admin/SuperAdmin/Modules/Package/Entity/Package.php line 13

  1. <?php
  2. namespace App\Admin\SuperAdmin\Modules\Package\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Table(name="package", uniqueConstraints={@ORM\UniqueConstraint(columns={"name"})}, indexes={@ORM\Index(columns={"slug"}), @ORM\Index(columns={"price"}), @ORM\Index(columns={"vouchers_parameterization"}), @ORM\Index(columns={"partners"}), @ORM\Index(columns={"is_recommended"}), @ORM\Index(columns={"is_active"})})
  8.  * @ORM\Entity(repositoryClass="App\Admin\SuperAdmin\Modules\Package\Repository\PackageRepository")
  9.  */
  10. class Package
  11. {
  12.     /**
  13.      * @ORM\Column(type="integer")
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @var string
  20.      *
  21.      * @ORM\Column(name="name", type="string", length=255, nullable=false, options={"collation"="utf8_unicode_ci"})
  22.      */
  23.     private $name;
  24.     
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="slug", type="string", length=255, nullable=false, options={"collation"="utf8_unicode_ci"})
  29.      * @Gedmo\Slug(fields={"name"})
  30.      */
  31.     private $slug;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="price", type="decimal", precision=14, scale=2, nullable=true)
  36.      */
  37.     private $price;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="vouchers_number", type="integer", nullable=false)
  42.      */
  43.     private $vouchersNumber;    
  44.     /**
  45.      * @var int
  46.      *
  47.      * @ORM\Column(name="print_vouchers_number", type="integer", nullable=false)
  48.      */
  49.     private $printVouchersNumber;    
  50.     /**
  51.      * @var int
  52.      *
  53.      * @ORM\Column(name="voucher_management_type", type="smallint", nullable=false)
  54.      */
  55.     private $voucherManagementType;
  56.     /**
  57.      * @var int
  58.      *
  59.      * @ORM\Column(name="reports_type", type="smallint", nullable=false)
  60.      */
  61.     private $reportsType;
  62.     /**
  63.      * @var bool
  64.      *
  65.      * @ORM\Column(name="offline_vouchers", type="boolean", nullable=false)
  66.      */
  67.     private $offlineVouchers;
  68.     /**
  69.      * @var bool
  70.      *
  71.      * @ORM\Column(name="product_vouchers", type="boolean", nullable=false)
  72.      */
  73.     private $productVouchers;
  74.     /**
  75.      * @var bool
  76.      *
  77.      * @ORM\Column(name="amount_vouchers", type="boolean", nullable=false)
  78.      */
  79.     private $amountVouchers;
  80.     /**
  81.      * @var bool
  82.      *
  83.      * @ORM\Column(name="thematic_vouchers", type="boolean", nullable=false)
  84.      */
  85.     private $thematicVouchers;
  86.     /**
  87.      * @var bool
  88.      *
  89.      * @ORM\Column(name="voucher_creator", type="boolean", nullable=false)
  90.      */
  91.     private $voucherCreator;
  92.     /**
  93.      * @var bool
  94.      *
  95.      * @ORM\Column(name="vouchers_parameterization", type="boolean", nullable=false)
  96.      */
  97.     private $vouchersParameterization;
  98.     /**
  99.      * @var bool
  100.      *
  101.      * @ORM\Column(name="code_sn_serialization", type="boolean", nullable=false)
  102.      */
  103.     private $codeSNSerialization;
  104.     /**
  105.      * @var bool
  106.      *
  107.      * @ORM\Column(name="partners", type="boolean", nullable=false)
  108.      */
  109.     private $partners;
  110.     /**
  111.      * @var bool
  112.      *
  113.      * @ORM\Column(name="loyalty_program", type="boolean", nullable=false)
  114.      */
  115.     private $loyaltyProgram;
  116.     /**
  117.      * @var bool
  118.      *
  119.      * @ORM\Column(name="client_panel", type="boolean", nullable=false)
  120.      */
  121.     private $clientPanel;
  122.     /**
  123.      * @var bool
  124.      *
  125.      * @ORM\Column(name="landing_pages_creator", type="boolean", nullable=false)
  126.      */
  127.     private $landingPagesCreator;
  128.     /**
  129.      * @var bool
  130.      *
  131.      * @ORM\Column(name="is_recommended", type="boolean", nullable=false)
  132.      */
  133.     private $isRecommended;
  134.     
  135.     /**
  136.      * @var bool
  137.      *
  138.      * @ORM\Column(name="is_active", type="boolean", nullable=false)
  139.      */
  140.     private $isActive;
  141.     
  142.     public function __toString()
  143.     {
  144.         return $this->name;
  145.     }
  146.     public function getId(): ?int
  147.     {
  148.         return $this->id;
  149.     }
  150.     public function getName(): ?string
  151.     {
  152.         return $this->name;
  153.     }
  154.     public function setName(string $name): self
  155.     {
  156.         $this->name $name;
  157.         return $this;
  158.     }
  159.     public function getPrice(): ?string
  160.     {
  161.         return $this->price;
  162.     }
  163.     public function setPrice(?string $price): self
  164.     {
  165.         $this->price $price;
  166.         return $this;
  167.     }
  168.     public function getVouchersNumber(): ?int
  169.     {
  170.         return $this->vouchersNumber;
  171.     }
  172.     public function setVouchersNumber(int $vouchersNumber): self
  173.     {
  174.         $this->vouchersNumber $vouchersNumber;
  175.         return $this;
  176.     }
  177.     public function getPrintVouchersNumber(): ?int
  178.     {
  179.         return $this->printVouchersNumber;
  180.     }
  181.     public function setPrintVouchersNumber(int $printVouchersNumber): self
  182.     {
  183.         $this->printVouchersNumber $printVouchersNumber;
  184.         return $this;
  185.     }
  186.     public function getVoucherManagementType(): ?int
  187.     {
  188.         return $this->voucherManagementType;
  189.     }
  190.     public function setVoucherManagementType(int $voucherManagementType): self
  191.     {
  192.         $this->voucherManagementType $voucherManagementType;
  193.         return $this;
  194.     }
  195.     public function getReportsType(): ?int
  196.     {
  197.         return $this->reportsType;
  198.     }
  199.     public function setReportsType(int $reportsType): self
  200.     {
  201.         $this->reportsType $reportsType;
  202.         return $this;
  203.     }
  204.     public function getOfflineVouchers(): ?bool
  205.     {
  206.         return $this->offlineVouchers;
  207.     }
  208.     public function setOfflineVouchers(bool $offlineVouchers): self
  209.     {
  210.         $this->offlineVouchers $offlineVouchers;
  211.         return $this;
  212.     }
  213.     public function getProductVouchers(): ?bool
  214.     {
  215.         return $this->productVouchers;
  216.     }
  217.     public function setProductVouchers(bool $productVouchers): self
  218.     {
  219.         $this->productVouchers $productVouchers;
  220.         return $this;
  221.     }
  222.     public function getAmountVouchers(): ?bool
  223.     {
  224.         return $this->amountVouchers;
  225.     }
  226.     public function setAmountVouchers(bool $amountVouchers): self
  227.     {
  228.         $this->amountVouchers $amountVouchers;
  229.         return $this;
  230.     }
  231.     public function getThematicVouchers(): ?bool
  232.     {
  233.         return $this->thematicVouchers;
  234.     }
  235.     public function setThematicVouchers(bool $thematicVouchers): self
  236.     {
  237.         $this->thematicVouchers $thematicVouchers;
  238.         return $this;
  239.     }
  240.     public function getVoucherCreator(): ?bool
  241.     {
  242.         return $this->voucherCreator;
  243.     }
  244.     public function setVoucherCreator(bool $voucherCreator): self
  245.     {
  246.         $this->voucherCreator $voucherCreator;
  247.         return $this;
  248.     }
  249.     public function getVouchersParameterization(): ?bool
  250.     {
  251.         return $this->vouchersParameterization;
  252.     }
  253.     public function setVouchersParameterization(bool $vouchersParameterization): self
  254.     {
  255.         $this->vouchersParameterization $vouchersParameterization;
  256.         return $this;
  257.     }
  258.     public function getCodeSNSerialization(): ?bool
  259.     {
  260.         return $this->codeSNSerialization;
  261.     }
  262.     public function setCodeSNSerialization(bool $codeSNSerialization): self
  263.     {
  264.         $this->codeSNSerialization $codeSNSerialization;
  265.         return $this;
  266.     }
  267.     public function getPartners(): ?bool
  268.     {
  269.         return $this->partners;
  270.     }
  271.     public function setPartners(bool $partners): self
  272.     {
  273.         $this->partners $partners;
  274.         return $this;
  275.     }
  276.     public function getLoyaltyProgram(): ?bool
  277.     {
  278.         return $this->loyaltyProgram;
  279.     }
  280.     public function setLoyaltyProgram(bool $loyaltyProgram): self
  281.     {
  282.         $this->loyaltyProgram $loyaltyProgram;
  283.         return $this;
  284.     }
  285.     public function getClientPanel(): ?bool
  286.     {
  287.         return $this->clientPanel;
  288.     }
  289.     public function setClientPanel(bool $clientPanel): self
  290.     {
  291.         $this->clientPanel $clientPanel;
  292.         return $this;
  293.     }
  294.     public function getLandingPagesCreator(): ?bool
  295.     {
  296.         return $this->landingPagesCreator;
  297.     }
  298.     public function setLandingPagesCreator(bool $landingPagesCreator): self
  299.     {
  300.         $this->landingPagesCreator $landingPagesCreator;
  301.         return $this;
  302.     }
  303.     public function getIsActive(): ?bool
  304.     {
  305.         return $this->isActive;
  306.     }
  307.     public function setIsActive(bool $isActive): self
  308.     {
  309.         $this->isActive $isActive;
  310.         return $this;
  311.     }
  312.     public function getIsRecommended(): ?bool
  313.     {
  314.         return $this->isRecommended;
  315.     }
  316.     public function setIsRecommended(bool $isRecommended): self
  317.     {
  318.         $this->isRecommended $isRecommended;
  319.         return $this;
  320.     }
  321.     public function getSlug(): ?string
  322.     {
  323.         return $this->slug;
  324.     }
  325.     public function setSlug(string $slug): self
  326.     {
  327.         $this->slug $slug;
  328.         return $this;
  329.     }
  330. }