11<?php
22
3- /*
4- * This file is part of Monsieur Biz' Search plugin for Sylius.
5- *
6- * (c) Monsieur Biz <[email protected] > 7- *
8- * For the full copyright and license information, please view the LICENSE.txt
9- * file that was distributed with this source code.
10- */
11-
12- declare (strict_types=1 );
13-
143namespace MonsieurBiz \SyliusSearchPlugin \Generated \Model ;
154
165class PricingDTO
176{
187 /**
8+ * @var array
9+ */
10+ protected $ initialized = [];
11+ public function isInitialized ($ property ) : bool
12+ {
13+ return array_key_exists ($ property , $ this ->initialized );
14+ }
15+ /**
16+ *
17+ *
1918 * @var string
2019 */
2120 protected $ channelCode ;
22-
2321 /**
24- * @var int|null
22+ *
23+ *
24+ * @var null|int
2525 */
2626 protected $ price ;
27-
2827 /**
29- * @var int|null
28+ *
29+ *
30+ * @var null|int
3031 */
3132 protected $ originalPrice ;
32-
3333 /**
34+ *
35+ *
3436 * @var bool
3537 */
3638 protected $ priceReduced ;
37-
38- public function getChannelCode (): string
39+ /**
40+ *
41+ *
42+ * @return string
43+ */
44+ public function getChannelCode () : string
3945 {
4046 return $ this ->channelCode ;
4147 }
42-
43- public function setChannelCode (string $ channelCode ): self
48+ /**
49+ *
50+ *
51+ * @param string $channelCode
52+ *
53+ * @return self
54+ */
55+ public function setChannelCode (string $ channelCode ) : self
4456 {
57+ $ this ->initialized ['channelCode ' ] = true ;
4558 $ this ->channelCode = $ channelCode ;
46-
4759 return $ this ;
4860 }
49-
50- public function getPrice (): ?int
61+ /**
62+ *
63+ *
64+ * @return null|int
65+ */
66+ public function getPrice () : ?int
5167 {
5268 return $ this ->price ;
5369 }
54-
55- public function setPrice (?int $ price ): self
70+ /**
71+ *
72+ *
73+ * @param null|int $price
74+ *
75+ * @return self
76+ */
77+ public function setPrice (?int $ price ) : self
5678 {
79+ $ this ->initialized ['price ' ] = true ;
5780 $ this ->price = $ price ;
58-
5981 return $ this ;
6082 }
61-
62- public function getOriginalPrice (): ?int
83+ /**
84+ *
85+ *
86+ * @return null|int
87+ */
88+ public function getOriginalPrice () : ?int
6389 {
6490 return $ this ->originalPrice ;
6591 }
66-
67- public function setOriginalPrice (?int $ originalPrice ): self
92+ /**
93+ *
94+ *
95+ * @param null|int $originalPrice
96+ *
97+ * @return self
98+ */
99+ public function setOriginalPrice (?int $ originalPrice ) : self
68100 {
101+ $ this ->initialized ['originalPrice ' ] = true ;
69102 $ this ->originalPrice = $ originalPrice ;
70-
71103 return $ this ;
72104 }
73-
74- public function getPriceReduced (): bool
105+ /**
106+ *
107+ *
108+ * @return bool
109+ */
110+ public function getPriceReduced () : bool
75111 {
76112 return $ this ->priceReduced ;
77113 }
78-
79- public function setPriceReduced (bool $ priceReduced ): self
114+ /**
115+ *
116+ *
117+ * @param bool $priceReduced
118+ *
119+ * @return self
120+ */
121+ public function setPriceReduced (bool $ priceReduced ) : self
80122 {
123+ $ this ->initialized ['priceReduced ' ] = true ;
81124 $ this ->priceReduced = $ priceReduced ;
82-
83125 return $ this ;
84126 }
85- }
127+ }
0 commit comments