app/Entity/Schema/ORM/Addons.php line 16

Open in your IDE?
  1. <?php
  2. namespace Sq\Entity\Schema\ORM;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Addons.
  6.  */
  7. #[ORM\Entity]
  8. #[ORM\Table(name'addons')]
  9. #[ORM\Index(name'ao_group_id'columns: ['ao_group_id'])]
  10. #[ORM\Index(name'ao_plan_id'columns: ['ao_plan_id'])]
  11. #[ORM\UniqueConstraint(name'ao_id'columns: ['ao_id'])]
  12. #[ORM\UniqueConstraint(name'ao_unique'columns: ['ao_name''ao_group_id''ao_plan_id''ao_value'])]
  13. class Addons
  14. {
  15.     /**
  16.      * @var int
  17.      */
  18.     #[ORM\Column(name'ao_id'type'integer'nullablefalseoptions: ['unsigned' => true])]
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  21.     private $id;
  22.     /**
  23.      * @var string|null
  24.      */
  25.     #[ORM\Column(name'ao_name'type'string'length32nullabletrue)]
  26.     private $name;
  27.     /**
  28.      * @var int|null
  29.      */
  30.     #[ORM\Column(name'ao_group_id'type'smallint'nullabletrueoptions: ['unsigned' => true])]
  31.     private $groupId;
  32.     /**
  33.      * @var Plan|null
  34.      */
  35.     #[ORM\ManyToOne(targetEntityPlan::class)]
  36.     #[ORM\JoinColumn(name'ao_plan_id'referencedColumnName'plan_id'nullabletrue)]
  37.     private $plan;
  38.     /**
  39.      * @var int|null
  40.      */
  41.     #[ORM\Column(name'ao_value'type'smallint'nullabletrueoptions: ['unsigned' => true])]
  42.     private $value;
  43.     /**
  44.      * @var bool|null
  45.      */
  46.     #[ORM\Column(name'ao_discountable'type'boolean'nullablefalseoptions: ['unsigned' => true])]
  47.     private $discountable true;
  48.     /**
  49.      * @var string|null
  50.      */
  51.     #[ORM\Column(name'ao_price_monthly_gbp'type'decimal'precision8scale2nullabletrue)]
  52.     private $priceMonthlyGbp;
  53.     /**
  54.      * @var string|null
  55.      */
  56.     #[ORM\Column(name'ao_price_yearly_gbp'type'decimal'precision8scale2nullabletrue)]
  57.     private $priceYearlyGbp;
  58.     /**
  59.      * @var string|null
  60.      */
  61.     #[ORM\Column(name'ao_price_monthly_usd'type'decimal'precision8scale2nullabletrue)]
  62.     private $priceMonthlyUsd;
  63.     /**
  64.      * @var string|null
  65.      */
  66.     #[ORM\Column(name'ao_price_yearly_usd'type'decimal'precision8scale2nullabletrue)]
  67.     private $priceYearlyUsd;
  68.     /**
  69.      * @var string|null
  70.      */
  71.     #[ORM\Column(name'ao_price_monthly_eur'type'decimal'precision8scale2nullabletrue)]
  72.     private $priceMonthlyEur;
  73.     /**
  74.      * @var string|null
  75.      */
  76.     #[ORM\Column(name'ao_price_yearly_eur'type'decimal'precision8scale2nullabletrue)]
  77.     private $priceYearlyEur;
  78.     public function getId(): ?int
  79.     {
  80.         return $this->id;
  81.     }
  82.     public function getName(): ?string
  83.     {
  84.         return $this->name;
  85.     }
  86.     public function setName(?string $name): self
  87.     {
  88.         $this->name $name;
  89.         return $this;
  90.     }
  91.     public function getGroupId(): ?int
  92.     {
  93.         return $this->groupId;
  94.     }
  95.     public function setGroupId(?int $groupId): self
  96.     {
  97.         $this->groupId $groupId;
  98.         return $this;
  99.     }
  100.     public function getPlan(): ?Plan
  101.     {
  102.         return $this->plan;
  103.     }
  104.     public function setPlanId(?Plan $plan): self
  105.     {
  106.         $this->plan $plan;
  107.         return $this;
  108.     }
  109.     public function getValue(): ?int
  110.     {
  111.         return $this->value;
  112.     }
  113.     public function setValue(?int $value): self
  114.     {
  115.         $this->value $value;
  116.         return $this;
  117.     }
  118.     public function isDiscountable(): bool
  119.     {
  120.         return $this->discountable;
  121.     }
  122.     public function allowDiscount(bool $discountable): self
  123.     {
  124.         $this->discountable $discountable;
  125.         return $this;
  126.     }
  127.     public function getPriceMonthlyGbp(): ?string
  128.     {
  129.         return $this->priceMonthlyGbp;
  130.     }
  131.     public function setPriceMonthlyGbp(?string $priceMonthlyGbp): self
  132.     {
  133.         $this->priceMonthlyGbp $priceMonthlyGbp;
  134.         return $this;
  135.     }
  136.     public function getPriceYearlyGbp(): ?string
  137.     {
  138.         return $this->priceYearlyGbp;
  139.     }
  140.     public function setPriceYearlyGbp(?string $priceYearlyGbp): self
  141.     {
  142.         $this->priceYearlyGbp $priceYearlyGbp;
  143.         return $this;
  144.     }
  145.     public function getPriceMonthlyUsd(): ?string
  146.     {
  147.         return $this->priceMonthlyUsd;
  148.     }
  149.     public function setPriceMonthlyUsd(?string $priceMonthlyUsd): self
  150.     {
  151.         $this->priceMonthlyUsd $priceMonthlyUsd;
  152.         return $this;
  153.     }
  154.     public function getPriceYearlyUsd(): ?string
  155.     {
  156.         return $this->priceYearlyUsd;
  157.     }
  158.     public function setPriceYearlyUsd(?string $priceYearlyUsd): self
  159.     {
  160.         $this->priceYearlyUsd $priceYearlyUsd;
  161.         return $this;
  162.     }
  163.     public function getPriceMonthlyEur(): ?string
  164.     {
  165.         return $this->priceMonthlyEur;
  166.     }
  167.     public function setPriceMonthlyEur(?string $priceMonthlyEur): self
  168.     {
  169.         $this->priceMonthlyEur $priceMonthlyEur;
  170.         return $this;
  171.     }
  172.     public function getPriceYearlyEur(): ?string
  173.     {
  174.         return $this->priceYearlyEur;
  175.     }
  176.     public function setPriceYearlyEur(?string $priceYearlyEur): self
  177.     {
  178.         $this->priceYearlyEur $priceYearlyEur;
  179.         return $this;
  180.     }
  181. }