1 | <?php |
||
7 | class Product extends Entity |
||
8 | { |
||
9 | const TYPE_FREE_PRICE = 'FREE_PRICE'; |
||
10 | const TYPE_FIXED_PRICE = 'FIXED_PRICE'; |
||
11 | const TYPE_SUBSCRIBE = 'SUBSCRIBE'; |
||
12 | |||
13 | private $type; |
||
14 | private $price; |
||
15 | private $description; |
||
16 | private $allowRandomPrice; |
||
17 | private $fields; |
||
18 | private $currencyId; |
||
19 | private $siteId; |
||
20 | private $site; |
||
21 | |||
22 | public function getType(): string |
||
23 | { |
||
24 | return $this->type; |
||
25 | } |
||
26 | |||
27 | public function setType(string $type): void |
||
28 | { |
||
29 | $this->type = $type; |
||
30 | } |
||
31 | |||
32 | public function getPrice(): float |
||
33 | { |
||
34 | return $this->price; |
||
35 | } |
||
36 | |||
37 | public function setPrice(float $price): void |
||
38 | { |
||
39 | $this->price = $price; |
||
40 | } |
||
41 | |||
42 | public function getDescription(): string |
||
43 | { |
||
44 | return $this->description; |
||
45 | } |
||
46 | |||
47 | public function setDescription(string $description): void |
||
48 | { |
||
49 | $this->description = $description; |
||
50 | } |
||
51 | |||
52 | public function getAllowRandomPrice(): bool |
||
53 | { |
||
54 | return $this->allowRandomPrice; |
||
55 | } |
||
56 | |||
57 | public function setAllowRandomPrice(bool $allowRandomPrice): void |
||
58 | { |
||
59 | $this->allowRandomPrice = $allowRandomPrice; |
||
60 | } |
||
61 | |||
62 | public function getFields(): string |
||
63 | { |
||
64 | return $this->fields; |
||
65 | } |
||
66 | |||
67 | public function setFields(string $fields): void |
||
68 | { |
||
69 | $this->fields = $fields; |
||
70 | } |
||
71 | |||
72 | public function getCurrencyId(): ?int |
||
73 | { |
||
74 | return $this->currencyId; |
||
75 | } |
||
76 | |||
77 | public function setCurrencyId(?int $currencyId): void |
||
81 | |||
82 | public function getSiteId(): ?int |
||
83 | { |
||
84 | return $this->siteId; |
||
85 | } |
||
86 | |||
87 | public function setSiteId(?int $siteId): void |
||
88 | { |
||
89 | $this->siteId = $siteId; |
||
90 | } |
||
91 | |||
92 | public function getSite(): ?Site |
||
93 | { |
||
94 | return $this->site; |
||
96 | |||
97 | public function setSite(?Site $site): void |
||
101 | } |
||
102 |