src/Entity/Gos/VirtualCurrency/ProductVariantVirtualCurrencySettings.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\VirtualCurrency;
  3. use App\Entity\Gos\ProductVariant;
  4. use App\Repository\Gos\VirtualCurrency\ProductVariantVirtualCurrencySettingsRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProductVariantVirtualCurrencySettingsRepository::class)
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class ProductVariantVirtualCurrencySettings
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\OneToOne(targetEntity=ProductVariant::class, inversedBy="productVariantVirtualCurrencySettings", cascade={"persist"})
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $productVariant;
  23.     /**
  24.      * @ORM\Column(type="boolean", nullable=true)
  25.      */
  26.     private $virtualCurrencyOnBuyAllow;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=VirtualCurrency::class)
  29.      */
  30.     private $virtualCurrencyOnBuy;
  31.     /**
  32.      * @ORM\Column(type="integer", nullable=true)
  33.      */
  34.     private $virtualCurrencyOnBuyValidFor;
  35.     /**
  36.      * @ORM\Column(type="float", nullable=true)
  37.      */
  38.     private $virtualCurrencyOnBuyAmount;
  39.     /**
  40.      * @ORM\Column(type="boolean", nullable=true)
  41.      */
  42.     private $virtualCurrencyOnBuyAmountIsUnlimited;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private $virtualCurrencyOnPayAllow;
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity=VirtualCurrency::class)
  49.      */
  50.     private $virtualCurrencyOnPay;
  51.     /**
  52.      * @ORM\Column(type="integer", nullable=true)
  53.      */
  54.     private $virtualCurrencyOnPayAccessDays;
  55.     /**
  56.      * @ORM\Column(type="float", nullable=true)
  57.      */
  58.     private $virtualCurrencyOnPayAmount;
  59.     /**
  60.      * @ORM\Column(type="datetime")
  61.      */
  62.     private $createdAt;
  63.     /**
  64.      * @ORM\Column(type="datetime", nullable=true)
  65.      */
  66.     private $updatedAt;
  67.     /**
  68.      * @ORM\PrePersist()
  69.      */
  70.     public function prePersist()
  71.     {
  72.         $this->createdAt = new \DateTime();
  73.     }
  74.     /**
  75.      * @ORM\PreUpdate()
  76.      */
  77.     public function preUpdate()
  78.     {
  79.         $this->updatedAt = new \DateTime();
  80.     }
  81.     public function getId(): ?int
  82.     {
  83.         return $this->id;
  84.     }
  85.     public function getProductVariant(): ?ProductVariant
  86.     {
  87.         return $this->productVariant;
  88.     }
  89.     public function setProductVariant(ProductVariant $productVariant): self
  90.     {
  91.         $this->productVariant $productVariant;
  92.         return $this;
  93.     }
  94.     public function getVirtualCurrencyOnBuyAllow(): ?bool
  95.     {
  96.         return $this->virtualCurrencyOnBuyAllow;
  97.     }
  98.     public function setVirtualCurrencyOnBuyAllow(?bool $virtualCurrencyOnBuyAllow): self
  99.     {
  100.         $this->virtualCurrencyOnBuyAllow $virtualCurrencyOnBuyAllow;
  101.         return $this;
  102.     }
  103.     public function getVirtualCurrencyOnBuy(): ?VirtualCurrency
  104.     {
  105.         return $this->virtualCurrencyOnBuy;
  106.     }
  107.     public function setVirtualCurrencyOnBuy(?VirtualCurrency $virtualCurrencyOnBuy): self
  108.     {
  109.         $this->virtualCurrencyOnBuy $virtualCurrencyOnBuy;
  110.         return $this;
  111.     }
  112.     public function getVirtualCurrencyOnBuyValidFor(): ?int
  113.     {
  114.         return $this->virtualCurrencyOnBuyValidFor;
  115.     }
  116.     public function setVirtualCurrencyOnBuyValidFor(?int $virtualCurrencyOnBuyValidFor): self
  117.     {
  118.         $this->virtualCurrencyOnBuyValidFor $virtualCurrencyOnBuyValidFor;
  119.         return $this;
  120.     }
  121.     public function getVirtualCurrencyOnBuyAmount(): ?float
  122.     {
  123.         return $this->virtualCurrencyOnBuyAmount;
  124.     }
  125.     public function setVirtualCurrencyOnBuyAmount(?float $virtualCurrencyOnBuyAmount): self
  126.     {
  127.         $this->virtualCurrencyOnBuyAmount $virtualCurrencyOnBuyAmount;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return mixed
  132.      */
  133.     public function getVirtualCurrencyOnBuyAmountIsUnlimited()
  134.     {
  135.         return $this->virtualCurrencyOnBuyAmountIsUnlimited;
  136.     }
  137.     /**
  138.      * @param mixed $virtualCurrencyOnBuyAmountIsUnlimited
  139.      * @return ProductVariantVirtualCurrencySettings
  140.      */
  141.     public function setVirtualCurrencyOnBuyAmountIsUnlimited($virtualCurrencyOnBuyAmountIsUnlimited): ProductVariantVirtualCurrencySettings
  142.     {
  143.         $this->virtualCurrencyOnBuyAmountIsUnlimited $virtualCurrencyOnBuyAmountIsUnlimited;
  144.         return $this;
  145.     }
  146.     public function getVirtualCurrencyOnPayAllow(): ?bool
  147.     {
  148.         return $this->virtualCurrencyOnPayAllow;
  149.     }
  150.     public function setVirtualCurrencyOnPayAllow(?bool $virtualCurrencyOnPayAllow): self
  151.     {
  152.         $this->virtualCurrencyOnPayAllow $virtualCurrencyOnPayAllow;
  153.         return $this;
  154.     }
  155.     public function getVirtualCurrencyOnPay(): ?VirtualCurrency
  156.     {
  157.         return $this->virtualCurrencyOnPay;
  158.     }
  159.     public function setVirtualCurrencyOnPay(?VirtualCurrency $virtualCurrencyOnPay): self
  160.     {
  161.         $this->virtualCurrencyOnPay $virtualCurrencyOnPay;
  162.         return $this;
  163.     }
  164.     public function getVirtualCurrencyOnPayAccessDays(): ?int
  165.     {
  166.         return $this->virtualCurrencyOnPayAccessDays;
  167.     }
  168.     public function setVirtualCurrencyOnPayAccessDays(?int $virtualCurrencyOnPayAccessDays): self
  169.     {
  170.         $this->virtualCurrencyOnPayAccessDays $virtualCurrencyOnPayAccessDays;
  171.         return $this;
  172.     }
  173.     public function getVirtualCurrencyOnPayAmount(): ?float
  174.     {
  175.         return $this->virtualCurrencyOnPayAmount;
  176.     }
  177.     public function setVirtualCurrencyOnPayAmount(?float $virtualCurrencyOnPayAmount): self
  178.     {
  179.         $this->virtualCurrencyOnPayAmount $virtualCurrencyOnPayAmount;
  180.         return $this;
  181.     }
  182.     public function getCreatedAt(): \DateTimeInterface
  183.     {
  184.         return $this->createdAt;
  185.     }
  186.     public function getUpdatedAt(): ?\DateTimeInterface
  187.     {
  188.         return $this->updatedAt;
  189.     }
  190. }