var/classes/DataObject/Product.php line 1421

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - description [calculatedValue]
  8.  * - productsheet [calculatedValue]
  9.  * - images [calculatedValue]
  10.  * - ingredients [calculatedValue]
  11.  * - allergens [calculatedValue]
  12.  * - nutrients [calculatedValue]
  13.  * - descriptionAvailable [calculatedValue]
  14.  * - productsheetAvailable [calculatedValue]
  15.  * - imagesAvailable [calculatedValue]
  16.  * - ingredientsAvailable [calculatedValue]
  17.  * - allergensAvailable [calculatedValue]
  18.  * - nutrientsAvailable [calculatedValue]
  19.  * - customDescription [wysiwyg]
  20.  * - customProductsheet [manyToOneRelation]
  21.  * - customImages [imageGallery]
  22.  * - psinfoodId [input]
  23.  * - psinfoodLastSynced [datetime]
  24.  * - psinfoodDescription [textarea]
  25.  * - psinfoodDocuments [textarea]
  26.  * - psinfoodIngredients [textarea]
  27.  * - psinfoodAllergens [textarea]
  28.  * - psinfoodNutrients [textarea]
  29.  * - psinfoodPhotosResponse [textarea]
  30.  * - psinfoodProductsheet [input]
  31.  * - psinfoodPackshot [externalImage]
  32.  * - psInFoodPhotos [imageGallery]
  33.  * - gs1NeedsUpdate [checkbox]
  34.  * - gs1LastSynced [datetime]
  35.  * - gs1Images [imageGallery]
  36.  * - gs1Description [textarea]
  37.  * - gs1Documents [textarea]
  38.  * - gs1Ingredients [textarea]
  39.  * - gs1Allergens [textarea]
  40.  * - gs1Nutrients [textarea]
  41.  * - gs1Response [textarea]
  42.  * - localizedfields [localizedfields]
  43.  * -- slug [urlSlug]
  44.  * -- name [input]
  45.  * - categories [manyToManyObjectRelation]
  46.  * - categoryTypes [manyToManyObjectRelation]
  47.  * - papyrusId [input]
  48.  * - lastSynced [input]
  49.  * - onOrder [checkbox]
  50.  * - stock [checkbox]
  51.  * - location [input]
  52.  * - code [input]
  53.  * - group [input]
  54.  * - brand [input]
  55.  * - barcode [input]
  56.  * - barcode2 [input]
  57.  * - barcode3 [input]
  58.  * - barcode4 [input]
  59.  * - barcode5 [input]
  60.  * - barcode6 [input]
  61.  * - barcode7 [input]
  62.  * - barcode8 [input]
  63.  * - barcode9 [input]
  64.  * - barcode10 [input]
  65.  * - unit [input]
  66.  * - unitMinimum [input]
  67.  * - AllowCustomerDiscount [booleanSelect]
  68.  * - searchKeywords [textarea]
  69.  * - Ranking [numeric]
  70.  * - webText [textarea]
  71.  * - price1 [numeric]
  72.  * - price2 [numeric]
  73.  * - price3 [numeric]
  74.  * - price4 [numeric]
  75.  * - vatcode [numeric]
  76.  * - promoDate1 [date]
  77.  * - promoDate2 [date]
  78.  * - promoPercentage [numeric]
  79.  * - promoPrice [numeric]
  80.  */
  81. namespace Pimcore\Model\DataObject;
  82. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  83. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  84. /**
  85. * @method static \Pimcore\Model\DataObject\Product\Listing getList(array $config = [])
  86. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCustomDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  87. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCustomProductsheet($value, $limit = 0, $offset = 0, $objectTypes = null)
  88. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodId($value, $limit = 0, $offset = 0, $objectTypes = null)
  89. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodLastSynced($value, $limit = 0, $offset = 0, $objectTypes = null)
  90. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  91. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodDocuments($value, $limit = 0, $offset = 0, $objectTypes = null)
  92. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodIngredients($value, $limit = 0, $offset = 0, $objectTypes = null)
  93. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodAllergens($value, $limit = 0, $offset = 0, $objectTypes = null)
  94. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodNutrients($value, $limit = 0, $offset = 0, $objectTypes = null)
  95. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodPhotosResponse($value, $limit = 0, $offset = 0, $objectTypes = null)
  96. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodProductsheet($value, $limit = 0, $offset = 0, $objectTypes = null)
  97. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1NeedsUpdate($value, $limit = 0, $offset = 0, $objectTypes = null)
  98. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1LastSynced($value, $limit = 0, $offset = 0, $objectTypes = null)
  99. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Description($value, $limit = 0, $offset = 0, $objectTypes = null)
  100. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Documents($value, $limit = 0, $offset = 0, $objectTypes = null)
  101. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Ingredients($value, $limit = 0, $offset = 0, $objectTypes = null)
  102. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Allergens($value, $limit = 0, $offset = 0, $objectTypes = null)
  103. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Nutrients($value, $limit = 0, $offset = 0, $objectTypes = null)
  104. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Response($value, $limit = 0, $offset = 0, $objectTypes = null)
  105. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  106. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getBySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  107. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  108. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
  109. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCategoryTypes($value, $limit = 0, $offset = 0, $objectTypes = null)
  110. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPapyrusId($value, $limit = 0, $offset = 0, $objectTypes = null)
  111. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLastSynced($value, $limit = 0, $offset = 0, $objectTypes = null)
  112. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByOnOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
  113. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByStock($value, $limit = 0, $offset = 0, $objectTypes = null)
  114. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
  115. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCode($value, $limit = 0, $offset = 0, $objectTypes = null)
  116. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGroup($value, $limit = 0, $offset = 0, $objectTypes = null)
  117. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBrand($value, $limit = 0, $offset = 0, $objectTypes = null)
  118. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode($value, $limit = 0, $offset = 0, $objectTypes = null)
  119. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode2($value, $limit = 0, $offset = 0, $objectTypes = null)
  120. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode3($value, $limit = 0, $offset = 0, $objectTypes = null)
  121. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode4($value, $limit = 0, $offset = 0, $objectTypes = null)
  122. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode5($value, $limit = 0, $offset = 0, $objectTypes = null)
  123. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode6($value, $limit = 0, $offset = 0, $objectTypes = null)
  124. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode7($value, $limit = 0, $offset = 0, $objectTypes = null)
  125. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode8($value, $limit = 0, $offset = 0, $objectTypes = null)
  126. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode9($value, $limit = 0, $offset = 0, $objectTypes = null)
  127. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode10($value, $limit = 0, $offset = 0, $objectTypes = null)
  128. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUnit($value, $limit = 0, $offset = 0, $objectTypes = null)
  129. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUnitMinimum($value, $limit = 0, $offset = 0, $objectTypes = null)
  130. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getBySearchKeywords($value, $limit = 0, $offset = 0, $objectTypes = null)
  131. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByRanking($value, $limit = 0, $offset = 0, $objectTypes = null)
  132. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByWebText($value, $limit = 0, $offset = 0, $objectTypes = null)
  133. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice1($value, $limit = 0, $offset = 0, $objectTypes = null)
  134. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice2($value, $limit = 0, $offset = 0, $objectTypes = null)
  135. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice3($value, $limit = 0, $offset = 0, $objectTypes = null)
  136. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice4($value, $limit = 0, $offset = 0, $objectTypes = null)
  137. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByVatcode($value, $limit = 0, $offset = 0, $objectTypes = null)
  138. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoDate1($value, $limit = 0, $offset = 0, $objectTypes = null)
  139. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoDate2($value, $limit = 0, $offset = 0, $objectTypes = null)
  140. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoPercentage($value, $limit = 0, $offset = 0, $objectTypes = null)
  141. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoPrice($value, $limit = 0, $offset = 0, $objectTypes = null)
  142. */
  143. class Product extends \App\Model\Product\AbstractProduct
  144. {
  145. protected $o_classId = "8";
  146. protected $o_className = "Product";
  147. protected $customDescription;
  148. protected $customProductsheet;
  149. protected $customImages;
  150. protected $psinfoodId;
  151. protected $psinfoodLastSynced;
  152. protected $psinfoodDescription;
  153. protected $psinfoodDocuments;
  154. protected $psinfoodIngredients;
  155. protected $psinfoodAllergens;
  156. protected $psinfoodNutrients;
  157. protected $psinfoodPhotosResponse;
  158. protected $psinfoodProductsheet;
  159. protected $psinfoodPackshot;
  160. protected $psInFoodPhotos;
  161. protected $gs1NeedsUpdate;
  162. protected $gs1LastSynced;
  163. protected $gs1Images;
  164. protected $gs1Description;
  165. protected $gs1Documents;
  166. protected $gs1Ingredients;
  167. protected $gs1Allergens;
  168. protected $gs1Nutrients;
  169. protected $gs1Response;
  170. protected $localizedfields;
  171. protected $categories;
  172. protected $categoryTypes;
  173. protected $papyrusId;
  174. protected $lastSynced;
  175. protected $onOrder;
  176. protected $stock;
  177. protected $location;
  178. protected $code;
  179. protected $group;
  180. protected $brand;
  181. protected $barcode;
  182. protected $barcode2;
  183. protected $barcode3;
  184. protected $barcode4;
  185. protected $barcode5;
  186. protected $barcode6;
  187. protected $barcode7;
  188. protected $barcode8;
  189. protected $barcode9;
  190. protected $barcode10;
  191. protected $unit;
  192. protected $unitMinimum;
  193. protected $AllowCustomerDiscount;
  194. protected $searchKeywords;
  195. protected $Ranking;
  196. protected $webText;
  197. protected $price1;
  198. protected $price2;
  199. protected $price3;
  200. protected $price4;
  201. protected $vatcode;
  202. protected $promoDate1;
  203. protected $promoDate2;
  204. protected $promoPercentage;
  205. protected $promoPrice;
  206. /**
  207. * @param array $values
  208. * @return \Pimcore\Model\DataObject\Product
  209. */
  210. public static function create($values = array()) {
  211.     $object = new static();
  212.     $object->setValues($values);
  213.     return $object;
  214. }
  215. /**
  216. * Get description - Omschrijving
  217. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  218. */
  219. public function getDescription()
  220. {
  221.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('description');
  222.     $data->setContextualData("object", null, null, null);
  223.     $object = $this;
  224.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  225.     return $data;
  226. }
  227. /**
  228. * Set description - Omschrijving
  229. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $description
  230. * @return \Pimcore\Model\DataObject\Product
  231. */
  232. public function setDescription($description)
  233. {
  234.     return $this;
  235. }
  236. /**
  237. * Get productsheet - Productfiche
  238. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  239. */
  240. public function getProductsheet()
  241. {
  242.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('productsheet');
  243.     $data->setContextualData("object", null, null, null);
  244.     $object = $this;
  245.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  246.     return $data;
  247. }
  248. /**
  249. * Set productsheet - Productfiche
  250. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $productsheet
  251. * @return \Pimcore\Model\DataObject\Product
  252. */
  253. public function setProductsheet($productsheet)
  254. {
  255.     return $this;
  256. }
  257. /**
  258. * Get images - Images
  259. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  260. */
  261. public function getImages()
  262. {
  263.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('images');
  264.     $data->setContextualData("object", null, null, null);
  265.     $object = $this;
  266.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  267.     return $data;
  268. }
  269. /**
  270. * Set images - Images
  271. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $images
  272. * @return \Pimcore\Model\DataObject\Product
  273. */
  274. public function setImages($images)
  275. {
  276.     return $this;
  277. }
  278. /**
  279. * Get ingredients - Ingrediënten
  280. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  281. */
  282. public function getIngredients()
  283. {
  284.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('ingredients');
  285.     $data->setContextualData("object", null, null, null);
  286.     $object = $this;
  287.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  288.     return $data;
  289. }
  290. /**
  291. * Set ingredients - Ingrediënten
  292. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $ingredients
  293. * @return \Pimcore\Model\DataObject\Product
  294. */
  295. public function setIngredients($ingredients)
  296. {
  297.     return $this;
  298. }
  299. /**
  300. * Get allergens - Allergenen
  301. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  302. */
  303. public function getAllergens()
  304. {
  305.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('allergens');
  306.     $data->setContextualData("object", null, null, null);
  307.     $object = $this;
  308.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  309.     return $data;
  310. }
  311. /**
  312. * Set allergens - Allergenen
  313. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $allergens
  314. * @return \Pimcore\Model\DataObject\Product
  315. */
  316. public function setAllergens($allergens)
  317. {
  318.     return $this;
  319. }
  320. /**
  321. * Get nutrients - Voedingswaarden
  322. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  323. */
  324. public function getNutrients()
  325. {
  326.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('nutrients');
  327.     $data->setContextualData("object", null, null, null);
  328.     $object = $this;
  329.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  330.     return $data;
  331. }
  332. /**
  333. * Set nutrients - Voedingswaarden
  334. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $nutrients
  335. * @return \Pimcore\Model\DataObject\Product
  336. */
  337. public function setNutrients($nutrients)
  338. {
  339.     return $this;
  340. }
  341. /**
  342. * Get descriptionAvailable - Omschrijving status
  343. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  344. */
  345. public function getDescriptionAvailable()
  346. {
  347.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('descriptionAvailable');
  348.     $data->setContextualData("object", null, null, null);
  349.     $object = $this;
  350.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  351.     return $data;
  352. }
  353. /**
  354. * Set descriptionAvailable - Omschrijving status
  355. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $descriptionAvailable
  356. * @return \Pimcore\Model\DataObject\Product
  357. */
  358. public function setDescriptionAvailable($descriptionAvailable)
  359. {
  360.     return $this;
  361. }
  362. /**
  363. * Get productsheetAvailable - Productsheet status
  364. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  365. */
  366. public function getProductsheetAvailable()
  367. {
  368.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('productsheetAvailable');
  369.     $data->setContextualData("object", null, null, null);
  370.     $object = $this;
  371.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  372.     return $data;
  373. }
  374. /**
  375. * Set productsheetAvailable - Productsheet status
  376. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $productsheetAvailable
  377. * @return \Pimcore\Model\DataObject\Product
  378. */
  379. public function setProductsheetAvailable($productsheetAvailable)
  380. {
  381.     return $this;
  382. }
  383. /**
  384. * Get imagesAvailable - Foto's status
  385. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  386. */
  387. public function getImagesAvailable()
  388. {
  389.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('imagesAvailable');
  390.     $data->setContextualData("object", null, null, null);
  391.     $object = $this;
  392.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  393.     return $data;
  394. }
  395. /**
  396. * Set imagesAvailable - Foto's status
  397. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $imagesAvailable
  398. * @return \Pimcore\Model\DataObject\Product
  399. */
  400. public function setImagesAvailable($imagesAvailable)
  401. {
  402.     return $this;
  403. }
  404. /**
  405. * Get ingredientsAvailable - Ingrediënten status
  406. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  407. */
  408. public function getIngredientsAvailable()
  409. {
  410.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('ingredientsAvailable');
  411.     $data->setContextualData("object", null, null, null);
  412.     $object = $this;
  413.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  414.     return $data;
  415. }
  416. /**
  417. * Set ingredientsAvailable - Ingrediënten status
  418. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $ingredientsAvailable
  419. * @return \Pimcore\Model\DataObject\Product
  420. */
  421. public function setIngredientsAvailable($ingredientsAvailable)
  422. {
  423.     return $this;
  424. }
  425. /**
  426. * Get allergensAvailable - Allergenen status
  427. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  428. */
  429. public function getAllergensAvailable()
  430. {
  431.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('allergensAvailable');
  432.     $data->setContextualData("object", null, null, null);
  433.     $object = $this;
  434.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  435.     return $data;
  436. }
  437. /**
  438. * Set allergensAvailable - Allergenen status
  439. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $allergensAvailable
  440. * @return \Pimcore\Model\DataObject\Product
  441. */
  442. public function setAllergensAvailable($allergensAvailable)
  443. {
  444.     return $this;
  445. }
  446. /**
  447. * Get nutrientsAvailable - Voedingswaarde status
  448. * @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
  449. */
  450. public function getNutrientsAvailable()
  451. {
  452.     $data = new \Pimcore\Model\DataObject\Data\CalculatedValue('nutrientsAvailable');
  453.     $data->setContextualData("object", null, null, null);
  454.     $object = $this;
  455.     $data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
  456.     return $data;
  457. }
  458. /**
  459. * Set nutrientsAvailable - Voedingswaarde status
  460. * @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $nutrientsAvailable
  461. * @return \Pimcore\Model\DataObject\Product
  462. */
  463. public function setNutrientsAvailable($nutrientsAvailable)
  464. {
  465.     return $this;
  466. }
  467. /**
  468. * Get customDescription - Omschrijving
  469. * @return string|null
  470. */
  471. public function getCustomDescription(): ?string
  472. {
  473.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  474.         $preValue = $this->preGetValue("customDescription");
  475.         if ($preValue !== null) {
  476.             return $preValue;
  477.         }
  478.     }
  479.     $data = $this->getClass()->getFieldDefinition("customDescription")->preGetData($this);
  480.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  481.         return $data->getPlain();
  482.     }
  483.     return $data;
  484. }
  485. /**
  486. * Set customDescription - Omschrijving
  487. * @param string|null $customDescription
  488. * @return \Pimcore\Model\DataObject\Product
  489. */
  490. public function setCustomDescription(?string $customDescription)
  491. {
  492.     $this->customDescription = $customDescription;
  493.     return $this;
  494. }
  495. /**
  496. * Get customProductsheet - Productfiche
  497. * @return \Pimcore\Model\Asset|null
  498. */
  499. public function getCustomProductsheet(): ?\Pimcore\Model\Element\AbstractElement
  500. {
  501.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  502.         $preValue = $this->preGetValue("customProductsheet");
  503.         if ($preValue !== null) {
  504.             return $preValue;
  505.         }
  506.     }
  507.     $data = $this->getClass()->getFieldDefinition("customProductsheet")->preGetData($this);
  508.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  509.         return $data->getPlain();
  510.     }
  511.     return $data;
  512. }
  513. /**
  514. * Set customProductsheet - Productfiche
  515. * @param \Pimcore\Model\Asset|null $customProductsheet
  516. * @return \Pimcore\Model\DataObject\Product
  517. */
  518. public function setCustomProductsheet(?\Pimcore\Model\Element\AbstractElement $customProductsheet)
  519. {
  520.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  521.     $fd = $this->getClass()->getFieldDefinition("customProductsheet");
  522.     $hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  523.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  524.     $currentData = $this->getCustomProductsheet();
  525.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  526.     $isEqual = $fd->isEqual($currentData, $customProductsheet);
  527.     if (!$isEqual) {
  528.         $this->markFieldDirty("customProductsheet", true);
  529.     }
  530.     $this->customProductsheet = $fd->preSetData($this, $customProductsheet);
  531.     return $this;
  532. }
  533. /**
  534. * Get customImages - Product foto's
  535. * @return \Pimcore\Model\DataObject\Data\ImageGallery|null
  536. */
  537. public function getCustomImages(): ?\Pimcore\Model\DataObject\Data\ImageGallery
  538. {
  539.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  540.         $preValue = $this->preGetValue("customImages");
  541.         if ($preValue !== null) {
  542.             return $preValue;
  543.         }
  544.     }
  545.     $data = $this->customImages;
  546.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  547.         return $data->getPlain();
  548.     }
  549.     return $data;
  550. }
  551. /**
  552. * Set customImages - Product foto's
  553. * @param \Pimcore\Model\DataObject\Data\ImageGallery|null $customImages
  554. * @return \Pimcore\Model\DataObject\Product
  555. */
  556. public function setCustomImages(?\Pimcore\Model\DataObject\Data\ImageGallery $customImages)
  557. {
  558.     $this->customImages = $customImages;
  559.     return $this;
  560. }
  561. /**
  562. * Get psinfoodId - Psinfood Id
  563. * @return string|null
  564. */
  565. public function getPsinfoodId(): ?string
  566. {
  567.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  568.         $preValue = $this->preGetValue("psinfoodId");
  569.         if ($preValue !== null) {
  570.             return $preValue;
  571.         }
  572.     }
  573.     $data = $this->psinfoodId;
  574.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  575.         return $data->getPlain();
  576.     }
  577.     return $data;
  578. }
  579. /**
  580. * Set psinfoodId - Psinfood Id
  581. * @param string|null $psinfoodId
  582. * @return \Pimcore\Model\DataObject\Product
  583. */
  584. public function setPsinfoodId(?string $psinfoodId)
  585. {
  586.     $this->psinfoodId = $psinfoodId;
  587.     return $this;
  588. }
  589. /**
  590. * Get psinfoodLastSynced - Psinfood Last Synced
  591. * @return \Carbon\Carbon|null
  592. */
  593. public function getPsinfoodLastSynced(): ?\Carbon\Carbon
  594. {
  595.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  596.         $preValue = $this->preGetValue("psinfoodLastSynced");
  597.         if ($preValue !== null) {
  598.             return $preValue;
  599.         }
  600.     }
  601.     $data = $this->psinfoodLastSynced;
  602.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  603.         return $data->getPlain();
  604.     }
  605.     return $data;
  606. }
  607. /**
  608. * Set psinfoodLastSynced - Psinfood Last Synced
  609. * @param \Carbon\Carbon|null $psinfoodLastSynced
  610. * @return \Pimcore\Model\DataObject\Product
  611. */
  612. public function setPsinfoodLastSynced(?\Carbon\Carbon $psinfoodLastSynced)
  613. {
  614.     $this->psinfoodLastSynced = $psinfoodLastSynced;
  615.     return $this;
  616. }
  617. /**
  618. * Get psinfoodDescription - Psinfood Description
  619. * @return string|null
  620. */
  621. public function getPsinfoodDescription(): ?string
  622. {
  623.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  624.         $preValue = $this->preGetValue("psinfoodDescription");
  625.         if ($preValue !== null) {
  626.             return $preValue;
  627.         }
  628.     }
  629.     $data = $this->psinfoodDescription;
  630.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  631.         return $data->getPlain();
  632.     }
  633.     return $data;
  634. }
  635. /**
  636. * Set psinfoodDescription - Psinfood Description
  637. * @param string|null $psinfoodDescription
  638. * @return \Pimcore\Model\DataObject\Product
  639. */
  640. public function setPsinfoodDescription(?string $psinfoodDescription)
  641. {
  642.     $this->psinfoodDescription = $psinfoodDescription;
  643.     return $this;
  644. }
  645. /**
  646. * Get psinfoodDocuments - Psinfood Documents
  647. * @return string|null
  648. */
  649. public function getPsinfoodDocuments(): ?string
  650. {
  651.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  652.         $preValue = $this->preGetValue("psinfoodDocuments");
  653.         if ($preValue !== null) {
  654.             return $preValue;
  655.         }
  656.     }
  657.     $data = $this->psinfoodDocuments;
  658.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  659.         return $data->getPlain();
  660.     }
  661.     return $data;
  662. }
  663. /**
  664. * Set psinfoodDocuments - Psinfood Documents
  665. * @param string|null $psinfoodDocuments
  666. * @return \Pimcore\Model\DataObject\Product
  667. */
  668. public function setPsinfoodDocuments(?string $psinfoodDocuments)
  669. {
  670.     $this->psinfoodDocuments = $psinfoodDocuments;
  671.     return $this;
  672. }
  673. /**
  674. * Get psinfoodIngredients - Psinfood Ingredients
  675. * @return string|null
  676. */
  677. public function getPsinfoodIngredients(): ?string
  678. {
  679.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  680.         $preValue = $this->preGetValue("psinfoodIngredients");
  681.         if ($preValue !== null) {
  682.             return $preValue;
  683.         }
  684.     }
  685.     $data = $this->psinfoodIngredients;
  686.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  687.         return $data->getPlain();
  688.     }
  689.     return $data;
  690. }
  691. /**
  692. * Set psinfoodIngredients - Psinfood Ingredients
  693. * @param string|null $psinfoodIngredients
  694. * @return \Pimcore\Model\DataObject\Product
  695. */
  696. public function setPsinfoodIngredients(?string $psinfoodIngredients)
  697. {
  698.     $this->psinfoodIngredients = $psinfoodIngredients;
  699.     return $this;
  700. }
  701. /**
  702. * Get psinfoodAllergens - Psinfood Allergens
  703. * @return string|null
  704. */
  705. public function getPsinfoodAllergens(): ?string
  706. {
  707.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  708.         $preValue = $this->preGetValue("psinfoodAllergens");
  709.         if ($preValue !== null) {
  710.             return $preValue;
  711.         }
  712.     }
  713.     $data = $this->psinfoodAllergens;
  714.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  715.         return $data->getPlain();
  716.     }
  717.     return $data;
  718. }
  719. /**
  720. * Set psinfoodAllergens - Psinfood Allergens
  721. * @param string|null $psinfoodAllergens
  722. * @return \Pimcore\Model\DataObject\Product
  723. */
  724. public function setPsinfoodAllergens(?string $psinfoodAllergens)
  725. {
  726.     $this->psinfoodAllergens = $psinfoodAllergens;
  727.     return $this;
  728. }
  729. /**
  730. * Get psinfoodNutrients - Psinfood Nutrients
  731. * @return string|null
  732. */
  733. public function getPsinfoodNutrients(): ?string
  734. {
  735.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  736.         $preValue = $this->preGetValue("psinfoodNutrients");
  737.         if ($preValue !== null) {
  738.             return $preValue;
  739.         }
  740.     }
  741.     $data = $this->psinfoodNutrients;
  742.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  743.         return $data->getPlain();
  744.     }
  745.     return $data;
  746. }
  747. /**
  748. * Set psinfoodNutrients - Psinfood Nutrients
  749. * @param string|null $psinfoodNutrients
  750. * @return \Pimcore\Model\DataObject\Product
  751. */
  752. public function setPsinfoodNutrients(?string $psinfoodNutrients)
  753. {
  754.     $this->psinfoodNutrients = $psinfoodNutrients;
  755.     return $this;
  756. }
  757. /**
  758. * Get psinfoodPhotosResponse - Psinfood Photos
  759. * @return string|null
  760. */
  761. public function getPsinfoodPhotosResponse(): ?string
  762. {
  763.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  764.         $preValue = $this->preGetValue("psinfoodPhotosResponse");
  765.         if ($preValue !== null) {
  766.             return $preValue;
  767.         }
  768.     }
  769.     $data = $this->psinfoodPhotosResponse;
  770.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  771.         return $data->getPlain();
  772.     }
  773.     return $data;
  774. }
  775. /**
  776. * Set psinfoodPhotosResponse - Psinfood Photos
  777. * @param string|null $psinfoodPhotosResponse
  778. * @return \Pimcore\Model\DataObject\Product
  779. */
  780. public function setPsinfoodPhotosResponse(?string $psinfoodPhotosResponse)
  781. {
  782.     $this->psinfoodPhotosResponse = $psinfoodPhotosResponse;
  783.     return $this;
  784. }
  785. /**
  786. * Get psinfoodProductsheet - Productsheet
  787. * @return string|null
  788. */
  789. public function getPsinfoodProductsheet(): ?string
  790. {
  791.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  792.         $preValue = $this->preGetValue("psinfoodProductsheet");
  793.         if ($preValue !== null) {
  794.             return $preValue;
  795.         }
  796.     }
  797.     $data = $this->psinfoodProductsheet;
  798.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  799.         return $data->getPlain();
  800.     }
  801.     return $data;
  802. }
  803. /**
  804. * Set psinfoodProductsheet - Productsheet
  805. * @param string|null $psinfoodProductsheet
  806. * @return \Pimcore\Model\DataObject\Product
  807. */
  808. public function setPsinfoodProductsheet(?string $psinfoodProductsheet)
  809. {
  810.     $this->psinfoodProductsheet = $psinfoodProductsheet;
  811.     return $this;
  812. }
  813. /**
  814. * Get psinfoodPackshot - Psinfood Packshot
  815. * @return \Pimcore\Model\DataObject\Data\ExternalImage|null
  816. */
  817. public function getPsinfoodPackshot(): ?\Pimcore\Model\DataObject\Data\ExternalImage
  818. {
  819.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  820.         $preValue = $this->preGetValue("psinfoodPackshot");
  821.         if ($preValue !== null) {
  822.             return $preValue;
  823.         }
  824.     }
  825.     $data = $this->psinfoodPackshot;
  826.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  827.         return $data->getPlain();
  828.     }
  829.     return $data;
  830. }
  831. /**
  832. * Set psinfoodPackshot - Psinfood Packshot
  833. * @param \Pimcore\Model\DataObject\Data\ExternalImage|null $psinfoodPackshot
  834. * @return \Pimcore\Model\DataObject\Product
  835. */
  836. public function setPsinfoodPackshot(?\Pimcore\Model\DataObject\Data\ExternalImage $psinfoodPackshot)
  837. {
  838.     $this->psinfoodPackshot = $psinfoodPackshot;
  839.     return $this;
  840. }
  841. /**
  842. * Get psInFoodPhotos - Ps In Food Photos
  843. * @return \Pimcore\Model\DataObject\Data\ImageGallery|null
  844. */
  845. public function getPsInFoodPhotos(): ?\Pimcore\Model\DataObject\Data\ImageGallery
  846. {
  847.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  848.         $preValue = $this->preGetValue("psInFoodPhotos");
  849.         if ($preValue !== null) {
  850.             return $preValue;
  851.         }
  852.     }
  853.     $data = $this->psInFoodPhotos;
  854.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  855.         return $data->getPlain();
  856.     }
  857.     return $data;
  858. }
  859. /**
  860. * Set psInFoodPhotos - Ps In Food Photos
  861. * @param \Pimcore\Model\DataObject\Data\ImageGallery|null $psInFoodPhotos
  862. * @return \Pimcore\Model\DataObject\Product
  863. */
  864. public function setPsInFoodPhotos(?\Pimcore\Model\DataObject\Data\ImageGallery $psInFoodPhotos)
  865. {
  866.     $this->psInFoodPhotos = $psInFoodPhotos;
  867.     return $this;
  868. }
  869. /**
  870. * Get gs1NeedsUpdate - Gs1 Needs Update
  871. * @return bool|null
  872. */
  873. public function getGs1NeedsUpdate(): ?bool
  874. {
  875.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  876.         $preValue = $this->preGetValue("gs1NeedsUpdate");
  877.         if ($preValue !== null) {
  878.             return $preValue;
  879.         }
  880.     }
  881.     $data = $this->gs1NeedsUpdate;
  882.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  883.         return $data->getPlain();
  884.     }
  885.     return $data;
  886. }
  887. /**
  888. * Set gs1NeedsUpdate - Gs1 Needs Update
  889. * @param bool|null $gs1NeedsUpdate
  890. * @return \Pimcore\Model\DataObject\Product
  891. */
  892. public function setGs1NeedsUpdate(?bool $gs1NeedsUpdate)
  893. {
  894.     $this->gs1NeedsUpdate = $gs1NeedsUpdate;
  895.     return $this;
  896. }
  897. /**
  898. * Get gs1LastSynced - GS1 Laatste syncrhonisatie
  899. * @return \Carbon\Carbon|null
  900. */
  901. public function getGs1LastSynced(): ?\Carbon\Carbon
  902. {
  903.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  904.         $preValue = $this->preGetValue("gs1LastSynced");
  905.         if ($preValue !== null) {
  906.             return $preValue;
  907.         }
  908.     }
  909.     $data = $this->gs1LastSynced;
  910.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  911.         return $data->getPlain();
  912.     }
  913.     return $data;
  914. }
  915. /**
  916. * Set gs1LastSynced - GS1 Laatste syncrhonisatie
  917. * @param \Carbon\Carbon|null $gs1LastSynced
  918. * @return \Pimcore\Model\DataObject\Product
  919. */
  920. public function setGs1LastSynced(?\Carbon\Carbon $gs1LastSynced)
  921. {
  922.     $this->gs1LastSynced = $gs1LastSynced;
  923.     return $this;
  924. }
  925. /**
  926. * Get gs1Images - Gs1 Images
  927. * @return \Pimcore\Model\DataObject\Data\ImageGallery|null
  928. */
  929. public function getGs1Images(): ?\Pimcore\Model\DataObject\Data\ImageGallery
  930. {
  931.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  932.         $preValue = $this->preGetValue("gs1Images");
  933.         if ($preValue !== null) {
  934.             return $preValue;
  935.         }
  936.     }
  937.     $data = $this->gs1Images;
  938.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  939.         return $data->getPlain();
  940.     }
  941.     return $data;
  942. }
  943. /**
  944. * Set gs1Images - Gs1 Images
  945. * @param \Pimcore\Model\DataObject\Data\ImageGallery|null $gs1Images
  946. * @return \Pimcore\Model\DataObject\Product
  947. */
  948. public function setGs1Images(?\Pimcore\Model\DataObject\Data\ImageGallery $gs1Images)
  949. {
  950.     $this->gs1Images = $gs1Images;
  951.     return $this;
  952. }
  953. /**
  954. * Get gs1Description - GS1 Description
  955. * @return string|null
  956. */
  957. public function getGs1Description(): ?string
  958. {
  959.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  960.         $preValue = $this->preGetValue("gs1Description");
  961.         if ($preValue !== null) {
  962.             return $preValue;
  963.         }
  964.     }
  965.     $data = $this->gs1Description;
  966.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  967.         return $data->getPlain();
  968.     }
  969.     return $data;
  970. }
  971. /**
  972. * Set gs1Description - GS1 Description
  973. * @param string|null $gs1Description
  974. * @return \Pimcore\Model\DataObject\Product
  975. */
  976. public function setGs1Description(?string $gs1Description)
  977. {
  978.     $this->gs1Description = $gs1Description;
  979.     return $this;
  980. }
  981. /**
  982. * Get gs1Documents - GS1 Documents
  983. * @return string|null
  984. */
  985. public function getGs1Documents(): ?string
  986. {
  987.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  988.         $preValue = $this->preGetValue("gs1Documents");
  989.         if ($preValue !== null) {
  990.             return $preValue;
  991.         }
  992.     }
  993.     $data = $this->gs1Documents;
  994.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  995.         return $data->getPlain();
  996.     }
  997.     return $data;
  998. }
  999. /**
  1000. * Set gs1Documents - GS1 Documents
  1001. * @param string|null $gs1Documents
  1002. * @return \Pimcore\Model\DataObject\Product
  1003. */
  1004. public function setGs1Documents(?string $gs1Documents)
  1005. {
  1006.     $this->gs1Documents = $gs1Documents;
  1007.     return $this;
  1008. }
  1009. /**
  1010. * Get gs1Ingredients - GS1 Ingredients
  1011. * @return string|null
  1012. */
  1013. public function getGs1Ingredients(): ?string
  1014. {
  1015.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1016.         $preValue = $this->preGetValue("gs1Ingredients");
  1017.         if ($preValue !== null) {
  1018.             return $preValue;
  1019.         }
  1020.     }
  1021.     $data = $this->gs1Ingredients;
  1022.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1023.         return $data->getPlain();
  1024.     }
  1025.     return $data;
  1026. }
  1027. /**
  1028. * Set gs1Ingredients - GS1 Ingredients
  1029. * @param string|null $gs1Ingredients
  1030. * @return \Pimcore\Model\DataObject\Product
  1031. */
  1032. public function setGs1Ingredients(?string $gs1Ingredients)
  1033. {
  1034.     $this->gs1Ingredients = $gs1Ingredients;
  1035.     return $this;
  1036. }
  1037. /**
  1038. * Get gs1Allergens - GS1 Allergens
  1039. * @return string|null
  1040. */
  1041. public function getGs1Allergens(): ?string
  1042. {
  1043.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1044.         $preValue = $this->preGetValue("gs1Allergens");
  1045.         if ($preValue !== null) {
  1046.             return $preValue;
  1047.         }
  1048.     }
  1049.     $data = $this->gs1Allergens;
  1050.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1051.         return $data->getPlain();
  1052.     }
  1053.     return $data;
  1054. }
  1055. /**
  1056. * Set gs1Allergens - GS1 Allergens
  1057. * @param string|null $gs1Allergens
  1058. * @return \Pimcore\Model\DataObject\Product
  1059. */
  1060. public function setGs1Allergens(?string $gs1Allergens)
  1061. {
  1062.     $this->gs1Allergens = $gs1Allergens;
  1063.     return $this;
  1064. }
  1065. /**
  1066. * Get gs1Nutrients - GS1 Nutrients
  1067. * @return string|null
  1068. */
  1069. public function getGs1Nutrients(): ?string
  1070. {
  1071.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1072.         $preValue = $this->preGetValue("gs1Nutrients");
  1073.         if ($preValue !== null) {
  1074.             return $preValue;
  1075.         }
  1076.     }
  1077.     $data = $this->gs1Nutrients;
  1078.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1079.         return $data->getPlain();
  1080.     }
  1081.     return $data;
  1082. }
  1083. /**
  1084. * Set gs1Nutrients - GS1 Nutrients
  1085. * @param string|null $gs1Nutrients
  1086. * @return \Pimcore\Model\DataObject\Product
  1087. */
  1088. public function setGs1Nutrients(?string $gs1Nutrients)
  1089. {
  1090.     $this->gs1Nutrients = $gs1Nutrients;
  1091.     return $this;
  1092. }
  1093. /**
  1094. * Get gs1Response - Gs1 Response
  1095. * @return string|null
  1096. */
  1097. public function getGs1Response(): ?string
  1098. {
  1099.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1100.         $preValue = $this->preGetValue("gs1Response");
  1101.         if ($preValue !== null) {
  1102.             return $preValue;
  1103.         }
  1104.     }
  1105.     $data = $this->gs1Response;
  1106.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1107.         return $data->getPlain();
  1108.     }
  1109.     return $data;
  1110. }
  1111. /**
  1112. * Set gs1Response - Gs1 Response
  1113. * @param string|null $gs1Response
  1114. * @return \Pimcore\Model\DataObject\Product
  1115. */
  1116. public function setGs1Response(?string $gs1Response)
  1117. {
  1118.     $this->gs1Response = $gs1Response;
  1119.     return $this;
  1120. }
  1121. /**
  1122. * Get localizedfields - 
  1123. * @return \Pimcore\Model\DataObject\Localizedfield|null
  1124. */
  1125. public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
  1126. {
  1127.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1128.         $preValue = $this->preGetValue("localizedfields");
  1129.         if ($preValue !== null) {
  1130.             return $preValue;
  1131.         }
  1132.     }
  1133.     $data = $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  1134.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1135.         return $data->getPlain();
  1136.     }
  1137.     return $data;
  1138. }
  1139. /**
  1140. * Get slug - Slug
  1141. * @return \Pimcore\Model\DataObject\Data\UrlSlug[]
  1142. */
  1143. public function getSlug($language = null): ?array
  1144. {
  1145.     $data = $this->getLocalizedfields()->getLocalizedValue("slug", $language);
  1146.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1147.         $preValue = $this->preGetValue("slug");
  1148.         if ($preValue !== null) {
  1149.             return $preValue;
  1150.         }
  1151.     }
  1152.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1153.         return $data->getPlain();
  1154.     }
  1155.     return $data;
  1156. }
  1157. /**
  1158. * Get name - Name
  1159. * @return string|null
  1160. */
  1161. public function getName($language = null): ?string
  1162. {
  1163.     $data = $this->getLocalizedfields()->getLocalizedValue("name", $language);
  1164.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1165.         $preValue = $this->preGetValue("name");
  1166.         if ($preValue !== null) {
  1167.             return $preValue;
  1168.         }
  1169.     }
  1170.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1171.         return $data->getPlain();
  1172.     }
  1173.     return $data;
  1174. }
  1175. /**
  1176. * Set localizedfields - 
  1177. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  1178. * @return \Pimcore\Model\DataObject\Product
  1179. */
  1180. public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
  1181. {
  1182.     $hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1183.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1184.     $currentData = $this->getLocalizedfields();
  1185.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1186.     $this->markFieldDirty("localizedfields", true);
  1187.     $this->localizedfields = $localizedfields;
  1188.     return $this;
  1189. }
  1190. /**
  1191. * Set slug - Slug
  1192. * @param \Pimcore\Model\DataObject\Data\UrlSlug[] $slug
  1193. * @return \Pimcore\Model\DataObject\Product
  1194. */
  1195. public function setSlug (?array $slug, $language = null)
  1196. {
  1197.     $fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("slug");
  1198.     $hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1199.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1200.     $currentData = $this->getSlug($language);
  1201.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1202.     $isEqual = $fd->isEqual($currentData, $slug);
  1203.     if (!$isEqual) {
  1204.         $this->markFieldDirty("slug", true);
  1205.     }
  1206.     $this->getLocalizedfields()->setLocalizedValue("slug", $slug, $language, !$isEqual);
  1207.     return $this;
  1208. }
  1209. /**
  1210. * Set name - Name
  1211. * @param string|null $name
  1212. * @return \Pimcore\Model\DataObject\Product
  1213. */
  1214. public function setName (?string $name, $language = null)
  1215. {
  1216.     $isEqual = false;
  1217.     $this->getLocalizedfields()->setLocalizedValue("name", $name, $language, !$isEqual);
  1218.     return $this;
  1219. }
  1220. /**
  1221. * Get categories - Categories
  1222. * @return \Pimcore\Model\DataObject\Category[]
  1223. */
  1224. public function getCategories(): array
  1225. {
  1226.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1227.         $preValue = $this->preGetValue("categories");
  1228.         if ($preValue !== null) {
  1229.             return $preValue;
  1230.         }
  1231.     }
  1232.     $data = $this->getClass()->getFieldDefinition("categories")->preGetData($this);
  1233.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1234.         return $data->getPlain();
  1235.     }
  1236.     return $data;
  1237. }
  1238. /**
  1239. * Set categories - Categories
  1240. * @param \Pimcore\Model\DataObject\Category[] $categories
  1241. * @return \Pimcore\Model\DataObject\Product
  1242. */
  1243. public function setCategories(?array $categories)
  1244. {
  1245.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1246.     $fd = $this->getClass()->getFieldDefinition("categories");
  1247.     $hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1248.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1249.     $currentData = $this->getCategories();
  1250.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1251.     $isEqual = $fd->isEqual($currentData, $categories);
  1252.     if (!$isEqual) {
  1253.         $this->markFieldDirty("categories", true);
  1254.     }
  1255.     $this->categories = $fd->preSetData($this, $categories);
  1256.     return $this;
  1257. }
  1258. /**
  1259. * Get categoryTypes - Category Types
  1260. * @return \Pimcore\Model\DataObject\CategoryType[]
  1261. */
  1262. public function getCategoryTypes(): array
  1263. {
  1264.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1265.         $preValue = $this->preGetValue("categoryTypes");
  1266.         if ($preValue !== null) {
  1267.             return $preValue;
  1268.         }
  1269.     }
  1270.     $data = $this->getClass()->getFieldDefinition("categoryTypes")->preGetData($this);
  1271.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1272.         return $data->getPlain();
  1273.     }
  1274.     return $data;
  1275. }
  1276. /**
  1277. * Set categoryTypes - Category Types
  1278. * @param \Pimcore\Model\DataObject\CategoryType[] $categoryTypes
  1279. * @return \Pimcore\Model\DataObject\Product
  1280. */
  1281. public function setCategoryTypes(?array $categoryTypes)
  1282. {
  1283.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1284.     $fd = $this->getClass()->getFieldDefinition("categoryTypes");
  1285.     $hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1286.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1287.     $currentData = $this->getCategoryTypes();
  1288.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1289.     $isEqual = $fd->isEqual($currentData, $categoryTypes);
  1290.     if (!$isEqual) {
  1291.         $this->markFieldDirty("categoryTypes", true);
  1292.     }
  1293.     $this->categoryTypes = $fd->preSetData($this, $categoryTypes);
  1294.     return $this;
  1295. }
  1296. /**
  1297. * Get papyrusId - Papyrus Id
  1298. * @return string|null
  1299. */
  1300. public function getPapyrusId(): ?string
  1301. {
  1302.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1303.         $preValue = $this->preGetValue("papyrusId");
  1304.         if ($preValue !== null) {
  1305.             return $preValue;
  1306.         }
  1307.     }
  1308.     $data = $this->papyrusId;
  1309.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1310.         return $data->getPlain();
  1311.     }
  1312.     return $data;
  1313. }
  1314. /**
  1315. * Set papyrusId - Papyrus Id
  1316. * @param string|null $papyrusId
  1317. * @return \Pimcore\Model\DataObject\Product
  1318. */
  1319. public function setPapyrusId(?string $papyrusId)
  1320. {
  1321.     $this->papyrusId = $papyrusId;
  1322.     return $this;
  1323. }
  1324. /**
  1325. * Get lastSynced - Last Synced
  1326. * @return string|null
  1327. */
  1328. public function getLastSynced(): ?string
  1329. {
  1330.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1331.         $preValue = $this->preGetValue("lastSynced");
  1332.         if ($preValue !== null) {
  1333.             return $preValue;
  1334.         }
  1335.     }
  1336.     $data = $this->lastSynced;
  1337.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1338.         return $data->getPlain();
  1339.     }
  1340.     return $data;
  1341. }
  1342. /**
  1343. * Set lastSynced - Last Synced
  1344. * @param string|null $lastSynced
  1345. * @return \Pimcore\Model\DataObject\Product
  1346. */
  1347. public function setLastSynced(?string $lastSynced)
  1348. {
  1349.     $this->lastSynced = $lastSynced;
  1350.     return $this;
  1351. }
  1352. /**
  1353. * Get onOrder - On Order
  1354. * @return bool|null
  1355. */
  1356. public function getOnOrder(): ?bool
  1357. {
  1358.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1359.         $preValue = $this->preGetValue("onOrder");
  1360.         if ($preValue !== null) {
  1361.             return $preValue;
  1362.         }
  1363.     }
  1364.     $data = $this->onOrder;
  1365.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1366.         return $data->getPlain();
  1367.     }
  1368.     return $data;
  1369. }
  1370. /**
  1371. * Set onOrder - On Order
  1372. * @param bool|null $onOrder
  1373. * @return \Pimcore\Model\DataObject\Product
  1374. */
  1375. public function setOnOrder(?bool $onOrder)
  1376. {
  1377.     $this->onOrder = $onOrder;
  1378.     return $this;
  1379. }
  1380. /**
  1381. * Get stock - Stock
  1382. * @return bool|null
  1383. */
  1384. public function getStock(): ?bool
  1385. {
  1386.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1387.         $preValue = $this->preGetValue("stock");
  1388.         if ($preValue !== null) {
  1389.             return $preValue;
  1390.         }
  1391.     }
  1392.     $data = $this->stock;
  1393.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1394.         return $data->getPlain();
  1395.     }
  1396.     return $data;
  1397. }
  1398. /**
  1399. * Set stock - Stock
  1400. * @param bool|null $stock
  1401. * @return \Pimcore\Model\DataObject\Product
  1402. */
  1403. public function setStock(?bool $stock)
  1404. {
  1405.     $this->stock = $stock;
  1406.     return $this;
  1407. }
  1408. /**
  1409. * Get location - Location
  1410. * @return string|null
  1411. */
  1412. public function getLocation(): ?string
  1413. {
  1414.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1415.         $preValue = $this->preGetValue("location");
  1416.         if ($preValue !== null) {
  1417.             return $preValue;
  1418.         }
  1419.     }
  1420.     $data = $this->location;
  1421.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1422.         return $data->getPlain();
  1423.     }
  1424.     return $data;
  1425. }
  1426. /**
  1427. * Set location - Location
  1428. * @param string|null $location
  1429. * @return \Pimcore\Model\DataObject\Product
  1430. */
  1431. public function setLocation(?string $location)
  1432. {
  1433.     $this->location = $location;
  1434.     return $this;
  1435. }
  1436. /**
  1437. * Get code - Code
  1438. * @return string|null
  1439. */
  1440. public function getCode(): ?string
  1441. {
  1442.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1443.         $preValue = $this->preGetValue("code");
  1444.         if ($preValue !== null) {
  1445.             return $preValue;
  1446.         }
  1447.     }
  1448.     $data = $this->code;
  1449.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1450.         return $data->getPlain();
  1451.     }
  1452.     return $data;
  1453. }
  1454. /**
  1455. * Set code - Code
  1456. * @param string|null $code
  1457. * @return \Pimcore\Model\DataObject\Product
  1458. */
  1459. public function setCode(?string $code)
  1460. {
  1461.     $this->code = $code;
  1462.     return $this;
  1463. }
  1464. /**
  1465. * Get group - Group
  1466. * @return string|null
  1467. */
  1468. public function getGroup(): ?string
  1469. {
  1470.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1471.         $preValue = $this->preGetValue("group");
  1472.         if ($preValue !== null) {
  1473.             return $preValue;
  1474.         }
  1475.     }
  1476.     $data = $this->group;
  1477.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1478.         return $data->getPlain();
  1479.     }
  1480.     return $data;
  1481. }
  1482. /**
  1483. * Set group - Group
  1484. * @param string|null $group
  1485. * @return \Pimcore\Model\DataObject\Product
  1486. */
  1487. public function setGroup(?string $group)
  1488. {
  1489.     $this->group = $group;
  1490.     return $this;
  1491. }
  1492. /**
  1493. * Get brand - Brand
  1494. * @return string|null
  1495. */
  1496. public function getBrand(): ?string
  1497. {
  1498.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1499.         $preValue = $this->preGetValue("brand");
  1500.         if ($preValue !== null) {
  1501.             return $preValue;
  1502.         }
  1503.     }
  1504.     $data = $this->brand;
  1505.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1506.         return $data->getPlain();
  1507.     }
  1508.     return $data;
  1509. }
  1510. /**
  1511. * Set brand - Brand
  1512. * @param string|null $brand
  1513. * @return \Pimcore\Model\DataObject\Product
  1514. */
  1515. public function setBrand(?string $brand)
  1516. {
  1517.     $this->brand = $brand;
  1518.     return $this;
  1519. }
  1520. /**
  1521. * Get barcode - Barcode
  1522. * @return string|null
  1523. */
  1524. public function getBarcode(): ?string
  1525. {
  1526.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1527.         $preValue = $this->preGetValue("barcode");
  1528.         if ($preValue !== null) {
  1529.             return $preValue;
  1530.         }
  1531.     }
  1532.     $data = $this->barcode;
  1533.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1534.         return $data->getPlain();
  1535.     }
  1536.     return $data;
  1537. }
  1538. /**
  1539. * Set barcode - Barcode
  1540. * @param string|null $barcode
  1541. * @return \Pimcore\Model\DataObject\Product
  1542. */
  1543. public function setBarcode(?string $barcode)
  1544. {
  1545.     $this->barcode = $barcode;
  1546.     return $this;
  1547. }
  1548. /**
  1549. * Get barcode2 - Barcode 2
  1550. * @return string|null
  1551. */
  1552. public function getBarcode2(): ?string
  1553. {
  1554.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1555.         $preValue = $this->preGetValue("barcode2");
  1556.         if ($preValue !== null) {
  1557.             return $preValue;
  1558.         }
  1559.     }
  1560.     $data = $this->barcode2;
  1561.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1562.         return $data->getPlain();
  1563.     }
  1564.     return $data;
  1565. }
  1566. /**
  1567. * Set barcode2 - Barcode 2
  1568. * @param string|null $barcode2
  1569. * @return \Pimcore\Model\DataObject\Product
  1570. */
  1571. public function setBarcode2(?string $barcode2)
  1572. {
  1573.     $this->barcode2 = $barcode2;
  1574.     return $this;
  1575. }
  1576. /**
  1577. * Get barcode3 - Barcode 3
  1578. * @return string|null
  1579. */
  1580. public function getBarcode3(): ?string
  1581. {
  1582.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1583.         $preValue = $this->preGetValue("barcode3");
  1584.         if ($preValue !== null) {
  1585.             return $preValue;
  1586.         }
  1587.     }
  1588.     $data = $this->barcode3;
  1589.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1590.         return $data->getPlain();
  1591.     }
  1592.     return $data;
  1593. }
  1594. /**
  1595. * Set barcode3 - Barcode 3
  1596. * @param string|null $barcode3
  1597. * @return \Pimcore\Model\DataObject\Product
  1598. */
  1599. public function setBarcode3(?string $barcode3)
  1600. {
  1601.     $this->barcode3 = $barcode3;
  1602.     return $this;
  1603. }
  1604. /**
  1605. * Get barcode4 - Barcode 4
  1606. * @return string|null
  1607. */
  1608. public function getBarcode4(): ?string
  1609. {
  1610.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1611.         $preValue = $this->preGetValue("barcode4");
  1612.         if ($preValue !== null) {
  1613.             return $preValue;
  1614.         }
  1615.     }
  1616.     $data = $this->barcode4;
  1617.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1618.         return $data->getPlain();
  1619.     }
  1620.     return $data;
  1621. }
  1622. /**
  1623. * Set barcode4 - Barcode 4
  1624. * @param string|null $barcode4
  1625. * @return \Pimcore\Model\DataObject\Product
  1626. */
  1627. public function setBarcode4(?string $barcode4)
  1628. {
  1629.     $this->barcode4 = $barcode4;
  1630.     return $this;
  1631. }
  1632. /**
  1633. * Get barcode5 - Barcode 5
  1634. * @return string|null
  1635. */
  1636. public function getBarcode5(): ?string
  1637. {
  1638.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1639.         $preValue = $this->preGetValue("barcode5");
  1640.         if ($preValue !== null) {
  1641.             return $preValue;
  1642.         }
  1643.     }
  1644.     $data = $this->barcode5;
  1645.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1646.         return $data->getPlain();
  1647.     }
  1648.     return $data;
  1649. }
  1650. /**
  1651. * Set barcode5 - Barcode 5
  1652. * @param string|null $barcode5
  1653. * @return \Pimcore\Model\DataObject\Product
  1654. */
  1655. public function setBarcode5(?string $barcode5)
  1656. {
  1657.     $this->barcode5 = $barcode5;
  1658.     return $this;
  1659. }
  1660. /**
  1661. * Get barcode6 - Barcode 6
  1662. * @return string|null
  1663. */
  1664. public function getBarcode6(): ?string
  1665. {
  1666.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1667.         $preValue = $this->preGetValue("barcode6");
  1668.         if ($preValue !== null) {
  1669.             return $preValue;
  1670.         }
  1671.     }
  1672.     $data = $this->barcode6;
  1673.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1674.         return $data->getPlain();
  1675.     }
  1676.     return $data;
  1677. }
  1678. /**
  1679. * Set barcode6 - Barcode 6
  1680. * @param string|null $barcode6
  1681. * @return \Pimcore\Model\DataObject\Product
  1682. */
  1683. public function setBarcode6(?string $barcode6)
  1684. {
  1685.     $this->barcode6 = $barcode6;
  1686.     return $this;
  1687. }
  1688. /**
  1689. * Get barcode7 - Barcode 7
  1690. * @return string|null
  1691. */
  1692. public function getBarcode7(): ?string
  1693. {
  1694.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1695.         $preValue = $this->preGetValue("barcode7");
  1696.         if ($preValue !== null) {
  1697.             return $preValue;
  1698.         }
  1699.     }
  1700.     $data = $this->barcode7;
  1701.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1702.         return $data->getPlain();
  1703.     }
  1704.     return $data;
  1705. }
  1706. /**
  1707. * Set barcode7 - Barcode 7
  1708. * @param string|null $barcode7
  1709. * @return \Pimcore\Model\DataObject\Product
  1710. */
  1711. public function setBarcode7(?string $barcode7)
  1712. {
  1713.     $this->barcode7 = $barcode7;
  1714.     return $this;
  1715. }
  1716. /**
  1717. * Get barcode8 - Barcode 8
  1718. * @return string|null
  1719. */
  1720. public function getBarcode8(): ?string
  1721. {
  1722.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1723.         $preValue = $this->preGetValue("barcode8");
  1724.         if ($preValue !== null) {
  1725.             return $preValue;
  1726.         }
  1727.     }
  1728.     $data = $this->barcode8;
  1729.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1730.         return $data->getPlain();
  1731.     }
  1732.     return $data;
  1733. }
  1734. /**
  1735. * Set barcode8 - Barcode 8
  1736. * @param string|null $barcode8
  1737. * @return \Pimcore\Model\DataObject\Product
  1738. */
  1739. public function setBarcode8(?string $barcode8)
  1740. {
  1741.     $this->barcode8 = $barcode8;
  1742.     return $this;
  1743. }
  1744. /**
  1745. * Get barcode9 - Barcode 9
  1746. * @return string|null
  1747. */
  1748. public function getBarcode9(): ?string
  1749. {
  1750.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1751.         $preValue = $this->preGetValue("barcode9");
  1752.         if ($preValue !== null) {
  1753.             return $preValue;
  1754.         }
  1755.     }
  1756.     $data = $this->barcode9;
  1757.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1758.         return $data->getPlain();
  1759.     }
  1760.     return $data;
  1761. }
  1762. /**
  1763. * Set barcode9 - Barcode 9
  1764. * @param string|null $barcode9
  1765. * @return \Pimcore\Model\DataObject\Product
  1766. */
  1767. public function setBarcode9(?string $barcode9)
  1768. {
  1769.     $this->barcode9 = $barcode9;
  1770.     return $this;
  1771. }
  1772. /**
  1773. * Get barcode10 - Barcode 10
  1774. * @return string|null
  1775. */
  1776. public function getBarcode10(): ?string
  1777. {
  1778.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1779.         $preValue = $this->preGetValue("barcode10");
  1780.         if ($preValue !== null) {
  1781.             return $preValue;
  1782.         }
  1783.     }
  1784.     $data = $this->barcode10;
  1785.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1786.         return $data->getPlain();
  1787.     }
  1788.     return $data;
  1789. }
  1790. /**
  1791. * Set barcode10 - Barcode 10
  1792. * @param string|null $barcode10
  1793. * @return \Pimcore\Model\DataObject\Product
  1794. */
  1795. public function setBarcode10(?string $barcode10)
  1796. {
  1797.     $this->barcode10 = $barcode10;
  1798.     return $this;
  1799. }
  1800. /**
  1801. * Get unit - Unit
  1802. * @return string|null
  1803. */
  1804. public function getUnit(): ?string
  1805. {
  1806.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1807.         $preValue = $this->preGetValue("unit");
  1808.         if ($preValue !== null) {
  1809.             return $preValue;
  1810.         }
  1811.     }
  1812.     $data = $this->unit;
  1813.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1814.         return $data->getPlain();
  1815.     }
  1816.     return $data;
  1817. }
  1818. /**
  1819. * Set unit - Unit
  1820. * @param string|null $unit
  1821. * @return \Pimcore\Model\DataObject\Product
  1822. */
  1823. public function setUnit(?string $unit)
  1824. {
  1825.     $this->unit = $unit;
  1826.     return $this;
  1827. }
  1828. /**
  1829. * Get unitMinimum - Unit _minimum
  1830. * @return string|null
  1831. */
  1832. public function getUnitMinimum(): ?string
  1833. {
  1834.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1835.         $preValue = $this->preGetValue("unitMinimum");
  1836.         if ($preValue !== null) {
  1837.             return $preValue;
  1838.         }
  1839.     }
  1840.     $data = $this->unitMinimum;
  1841.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1842.         return $data->getPlain();
  1843.     }
  1844.     return $data;
  1845. }
  1846. /**
  1847. * Set unitMinimum - Unit _minimum
  1848. * @param string|null $unitMinimum
  1849. * @return \Pimcore\Model\DataObject\Product
  1850. */
  1851. public function setUnitMinimum(?string $unitMinimum)
  1852. {
  1853.     $this->unitMinimum = $unitMinimum;
  1854.     return $this;
  1855. }
  1856. /**
  1857. * Get AllowCustomerDiscount - Allow Customer Discount
  1858. * @return bool|null
  1859. */
  1860. public function getAllowCustomerDiscount(): ?bool
  1861. {
  1862.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1863.         $preValue = $this->preGetValue("AllowCustomerDiscount");
  1864.         if ($preValue !== null) {
  1865.             return $preValue;
  1866.         }
  1867.     }
  1868.     $data = $this->AllowCustomerDiscount;
  1869.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1870.         return $data->getPlain();
  1871.     }
  1872.     return $data;
  1873. }
  1874. /**
  1875. * Set AllowCustomerDiscount - Allow Customer Discount
  1876. * @param bool|null $AllowCustomerDiscount
  1877. * @return \Pimcore\Model\DataObject\Product
  1878. */
  1879. public function setAllowCustomerDiscount(?bool $AllowCustomerDiscount)
  1880. {
  1881.     $this->AllowCustomerDiscount = $AllowCustomerDiscount;
  1882.     return $this;
  1883. }
  1884. /**
  1885. * Get searchKeywords - Search Keywords
  1886. * @return string|null
  1887. */
  1888. public function getSearchKeywords(): ?string
  1889. {
  1890.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1891.         $preValue = $this->preGetValue("searchKeywords");
  1892.         if ($preValue !== null) {
  1893.             return $preValue;
  1894.         }
  1895.     }
  1896.     $data = $this->searchKeywords;
  1897.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1898.         return $data->getPlain();
  1899.     }
  1900.     return $data;
  1901. }
  1902. /**
  1903. * Set searchKeywords - Search Keywords
  1904. * @param string|null $searchKeywords
  1905. * @return \Pimcore\Model\DataObject\Product
  1906. */
  1907. public function setSearchKeywords(?string $searchKeywords)
  1908. {
  1909.     $this->searchKeywords = $searchKeywords;
  1910.     return $this;
  1911. }
  1912. /**
  1913. * Get Ranking - Rangorde
  1914. * @return float|null
  1915. */
  1916. public function getRanking(): ?float
  1917. {
  1918.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1919.         $preValue = $this->preGetValue("Ranking");
  1920.         if ($preValue !== null) {
  1921.             return $preValue;
  1922.         }
  1923.     }
  1924.     $data = $this->Ranking;
  1925.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1926.         return $data->getPlain();
  1927.     }
  1928.     return $data;
  1929. }
  1930. /**
  1931. * Set Ranking - Rangorde
  1932. * @param float|null $Ranking
  1933. * @return \Pimcore\Model\DataObject\Product
  1934. */
  1935. public function setRanking(?float $Ranking)
  1936. {
  1937.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  1938.     $fd = $this->getClass()->getFieldDefinition("Ranking");
  1939.     $this->Ranking = $fd->preSetData($this, $Ranking);
  1940.     return $this;
  1941. }
  1942. /**
  1943. * Get webText - Webtekst
  1944. * @return string|null
  1945. */
  1946. public function getWebText(): ?string
  1947. {
  1948.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1949.         $preValue = $this->preGetValue("webText");
  1950.         if ($preValue !== null) {
  1951.             return $preValue;
  1952.         }
  1953.     }
  1954.     $data = $this->webText;
  1955.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1956.         return $data->getPlain();
  1957.     }
  1958.     return $data;
  1959. }
  1960. /**
  1961. * Set webText - Webtekst
  1962. * @param string|null $webText
  1963. * @return \Pimcore\Model\DataObject\Product
  1964. */
  1965. public function setWebText(?string $webText)
  1966. {
  1967.     $this->webText = $webText;
  1968.     return $this;
  1969. }
  1970. /**
  1971. * Get price1 - Price1
  1972. * @return string|null
  1973. */
  1974. public function getPrice1(): ?string
  1975. {
  1976.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1977.         $preValue = $this->preGetValue("price1");
  1978.         if ($preValue !== null) {
  1979.             return $preValue;
  1980.         }
  1981.     }
  1982.     $data = $this->price1;
  1983.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1984.         return $data->getPlain();
  1985.     }
  1986.     return $data;
  1987. }
  1988. /**
  1989. * Set price1 - Price1
  1990. * @param string|null $price1
  1991. * @return \Pimcore\Model\DataObject\Product
  1992. */
  1993. public function setPrice1(?string $price1)
  1994. {
  1995.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  1996.     $fd = $this->getClass()->getFieldDefinition("price1");
  1997.     $this->price1 = $fd->preSetData($this, $price1);
  1998.     return $this;
  1999. }
  2000. /**
  2001. * Get price2 - Price2
  2002. * @return string|null
  2003. */
  2004. public function getPrice2(): ?string
  2005. {
  2006.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2007.         $preValue = $this->preGetValue("price2");
  2008.         if ($preValue !== null) {
  2009.             return $preValue;
  2010.         }
  2011.     }
  2012.     $data = $this->price2;
  2013.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2014.         return $data->getPlain();
  2015.     }
  2016.     return $data;
  2017. }
  2018. /**
  2019. * Set price2 - Price2
  2020. * @param string|null $price2
  2021. * @return \Pimcore\Model\DataObject\Product
  2022. */
  2023. public function setPrice2(?string $price2)
  2024. {
  2025.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2026.     $fd = $this->getClass()->getFieldDefinition("price2");
  2027.     $this->price2 = $fd->preSetData($this, $price2);
  2028.     return $this;
  2029. }
  2030. /**
  2031. * Get price3 - Price3
  2032. * @return string|null
  2033. */
  2034. public function getPrice3(): ?string
  2035. {
  2036.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2037.         $preValue = $this->preGetValue("price3");
  2038.         if ($preValue !== null) {
  2039.             return $preValue;
  2040.         }
  2041.     }
  2042.     $data = $this->price3;
  2043.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2044.         return $data->getPlain();
  2045.     }
  2046.     return $data;
  2047. }
  2048. /**
  2049. * Set price3 - Price3
  2050. * @param string|null $price3
  2051. * @return \Pimcore\Model\DataObject\Product
  2052. */
  2053. public function setPrice3(?string $price3)
  2054. {
  2055.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2056.     $fd = $this->getClass()->getFieldDefinition("price3");
  2057.     $this->price3 = $fd->preSetData($this, $price3);
  2058.     return $this;
  2059. }
  2060. /**
  2061. * Get price4 - Price4
  2062. * @return string|null
  2063. */
  2064. public function getPrice4(): ?string
  2065. {
  2066.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2067.         $preValue = $this->preGetValue("price4");
  2068.         if ($preValue !== null) {
  2069.             return $preValue;
  2070.         }
  2071.     }
  2072.     $data = $this->price4;
  2073.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2074.         return $data->getPlain();
  2075.     }
  2076.     return $data;
  2077. }
  2078. /**
  2079. * Set price4 - Price4
  2080. * @param string|null $price4
  2081. * @return \Pimcore\Model\DataObject\Product
  2082. */
  2083. public function setPrice4(?string $price4)
  2084. {
  2085.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2086.     $fd = $this->getClass()->getFieldDefinition("price4");
  2087.     $this->price4 = $fd->preSetData($this, $price4);
  2088.     return $this;
  2089. }
  2090. /**
  2091. * Get vatcode - Vatcode
  2092. * @return float|null
  2093. */
  2094. public function getVatcode(): ?float
  2095. {
  2096.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2097.         $preValue = $this->preGetValue("vatcode");
  2098.         if ($preValue !== null) {
  2099.             return $preValue;
  2100.         }
  2101.     }
  2102.     $data = $this->vatcode;
  2103.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2104.         return $data->getPlain();
  2105.     }
  2106.     return $data;
  2107. }
  2108. /**
  2109. * Set vatcode - Vatcode
  2110. * @param float|null $vatcode
  2111. * @return \Pimcore\Model\DataObject\Product
  2112. */
  2113. public function setVatcode(?float $vatcode)
  2114. {
  2115.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2116.     $fd = $this->getClass()->getFieldDefinition("vatcode");
  2117.     $this->vatcode = $fd->preSetData($this, $vatcode);
  2118.     return $this;
  2119. }
  2120. /**
  2121. * Get promoDate1 - Promodate1
  2122. * @return \Carbon\Carbon|null
  2123. */
  2124. public function getPromoDate1(): ?\Carbon\Carbon
  2125. {
  2126.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2127.         $preValue = $this->preGetValue("promoDate1");
  2128.         if ($preValue !== null) {
  2129.             return $preValue;
  2130.         }
  2131.     }
  2132.     $data = $this->promoDate1;
  2133.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2134.         return $data->getPlain();
  2135.     }
  2136.     return $data;
  2137. }
  2138. /**
  2139. * Set promoDate1 - Promodate1
  2140. * @param \Carbon\Carbon|null $promoDate1
  2141. * @return \Pimcore\Model\DataObject\Product
  2142. */
  2143. public function setPromoDate1(?\Carbon\Carbon $promoDate1)
  2144. {
  2145.     $this->promoDate1 = $promoDate1;
  2146.     return $this;
  2147. }
  2148. /**
  2149. * Get promoDate2 - Promo date2
  2150. * @return \Carbon\Carbon|null
  2151. */
  2152. public function getPromoDate2(): ?\Carbon\Carbon
  2153. {
  2154.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2155.         $preValue = $this->preGetValue("promoDate2");
  2156.         if ($preValue !== null) {
  2157.             return $preValue;
  2158.         }
  2159.     }
  2160.     $data = $this->promoDate2;
  2161.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2162.         return $data->getPlain();
  2163.     }
  2164.     return $data;
  2165. }
  2166. /**
  2167. * Set promoDate2 - Promo date2
  2168. * @param \Carbon\Carbon|null $promoDate2
  2169. * @return \Pimcore\Model\DataObject\Product
  2170. */
  2171. public function setPromoDate2(?\Carbon\Carbon $promoDate2)
  2172. {
  2173.     $this->promoDate2 = $promoDate2;
  2174.     return $this;
  2175. }
  2176. /**
  2177. * Get promoPercentage - Promo Percentage
  2178. * @return float|null
  2179. */
  2180. public function getPromoPercentage(): ?float
  2181. {
  2182.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2183.         $preValue = $this->preGetValue("promoPercentage");
  2184.         if ($preValue !== null) {
  2185.             return $preValue;
  2186.         }
  2187.     }
  2188.     $data = $this->promoPercentage;
  2189.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2190.         return $data->getPlain();
  2191.     }
  2192.     return $data;
  2193. }
  2194. /**
  2195. * Set promoPercentage - Promo Percentage
  2196. * @param float|null $promoPercentage
  2197. * @return \Pimcore\Model\DataObject\Product
  2198. */
  2199. public function setPromoPercentage(?float $promoPercentage)
  2200. {
  2201.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2202.     $fd = $this->getClass()->getFieldDefinition("promoPercentage");
  2203.     $this->promoPercentage = $fd->preSetData($this, $promoPercentage);
  2204.     return $this;
  2205. }
  2206. /**
  2207. * Get promoPrice - Promo Price
  2208. * @return float|null
  2209. */
  2210. public function getPromoPrice(): ?float
  2211. {
  2212.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2213.         $preValue = $this->preGetValue("promoPrice");
  2214.         if ($preValue !== null) {
  2215.             return $preValue;
  2216.         }
  2217.     }
  2218.     $data = $this->promoPrice;
  2219.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2220.         return $data->getPlain();
  2221.     }
  2222.     return $data;
  2223. }
  2224. /**
  2225. * Set promoPrice - Promo Price
  2226. * @param float|null $promoPrice
  2227. * @return \Pimcore\Model\DataObject\Product
  2228. */
  2229. public function setPromoPrice(?float $promoPrice)
  2230. {
  2231.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2232.     $fd = $this->getClass()->getFieldDefinition("promoPrice");
  2233.     $this->promoPrice = $fd->preSetData($this, $promoPrice);
  2234.     return $this;
  2235. }
  2236. }