var/classes/DataObject/CoreShopProduct.php line 3188

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: yes
  4.  * Variants: yes
  5.  *
  6.  * Fields Summary:
  7.  * - localizedfields [localizedfields]
  8.  * -- name [input]
  9.  * -- shortDescription [textarea]
  10.  * -- slug [urlSlug]
  11.  * -- pimcoreMetaTitle [input]
  12.  * -- pimcoreMetaDescription [textarea]
  13.  * -- description [wysiwyg]
  14.  * - sku [input]
  15.  * - ean [input]
  16.  * - active [checkbox]
  17.  * - digitalProduct [booleanSelect]
  18.  * - manufacturer [coreShopRelation]
  19.  * - stores [coreShopStoreMultiselect]
  20.  * - orderable [booleanSelect]
  21.  * - availability [select]
  22.  * - refname [input]
  23.  * - uniqueName [input]
  24.  * - businessClass [input]
  25.  * - brand [input]
  26.  * - collection [input]
  27.  * - subcollection [input]
  28.  * - subcollectionseries [input]
  29.  * - typeofwatch [input]
  30.  * - style [input]
  31.  * - visualban [input]
  32.  * - visualwr [input]
  33.  * - calibernumber [manyToOneRelation]
  34.  * - movementtype [input]
  35.  * - accuracy [input]
  36.  * - accuracy2 [input]
  37.  * - accuracyinterval [input]
  38.  * - powerreserve [input]
  39.  * - gasketlife [input]
  40.  * - case [input]
  41.  * - backcase [input]
  42.  * - band [input]
  43.  * - bandWidth [input]
  44.  * - buckle [input]
  45.  * - glass [input]
  46.  * - formofcase [input]
  47.  * - dial [input]
  48.  * - colorofdial [input]
  49.  * - lumibrite [input]
  50.  * - bezel [input]
  51.  * - crownandbutton [input]
  52.  * - diamonds [input]
  53.  * - size [input]
  54.  * - size2 [input]
  55.  * - size3 [input]
  56.  * - weight_ [input]
  57.  * - waterresistance [input]
  58.  * - other1 [input]
  59.  * - other2 [input]
  60.  * - limited [input]
  61.  * - year [input]
  62.  * - series [input]
  63.  * - newsfromdate [date]
  64.  * - newstodate [date]
  65.  * - statusdetails [input]
  66.  * - group [input]
  67.  * - bandfilter [input]
  68.  * - casefilter [input]
  69.  * - movementtypefilter [input]
  70.  * - glassfilter [input]
  71.  * - diamondsfilter [input]
  72.  * - mainVariant [coreShopRelation]
  73.  * - allowedAttributeGroups [coreShopRelations]
  74.  * - attributes [coreShopRelations]
  75.  * - categories [coreShopRelations]
  76.  * - images [manyToManyRelation]
  77.  * - videos [manyToManyRelation]
  78.  * - onHold [numeric]
  79.  * - onHand [numeric]
  80.  * - isTracked [booleanSelect]
  81.  * - minimumQuantityToOrder [numeric]
  82.  * - maximumQuantityToOrder [numeric]
  83.  * - unitDefinitions [coreShopProductUnitDefinitions]
  84.  * - storeValues [coreShopStoreValues]
  85.  * - itemQuantityFactor [numeric]
  86.  * - wholesalePrice [coreShopMoney]
  87.  * - wholesaleBuyingPrice [coreShopMoneyCurrency]
  88.  * - taxRule [coreShopTaxRuleGroup]
  89.  * - outlet [checkbox]
  90.  * - specificPriceRules [coreShopProductSpecificPriceRules]
  91.  * - quantityPriceRules [coreShopProductQuantityPriceRules]
  92.  * - weight [numeric]
  93.  * - height [numeric]
  94.  * - width [numeric]
  95.  * - depth [numeric]
  96.  */
  97. namespace Pimcore\Model\DataObject;
  98. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  99. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  100. /**
  101. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing getList(array $config = [])
  102. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  103. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  104. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByShortDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  105. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  106. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByPimcoreMetaTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  107. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByPimcoreMetaDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  108. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  109. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySku($value, $limit = 0, $offset = 0, $objectTypes = null)
  110. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByEan($value, $limit = 0, $offset = 0, $objectTypes = null)
  111. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByActive($value, $limit = 0, $offset = 0, $objectTypes = null)
  112. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByManufacturer($value, $limit = 0, $offset = 0, $objectTypes = null)
  113. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByStores($value, $limit = 0, $offset = 0, $objectTypes = null)
  114. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAvailability($value, $limit = 0, $offset = 0, $objectTypes = null)
  115. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByRefname($value, $limit = 0, $offset = 0, $objectTypes = null)
  116. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByUniqueName($value, $limit = 0, $offset = 0, $objectTypes = null)
  117. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBusinessClass($value, $limit = 0, $offset = 0, $objectTypes = null)
  118. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBrand($value, $limit = 0, $offset = 0, $objectTypes = null)
  119. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCollection($value, $limit = 0, $offset = 0, $objectTypes = null)
  120. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySubcollection($value, $limit = 0, $offset = 0, $objectTypes = null)
  121. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySubcollectionseries($value, $limit = 0, $offset = 0, $objectTypes = null)
  122. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByTypeofwatch($value, $limit = 0, $offset = 0, $objectTypes = null)
  123. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByStyle($value, $limit = 0, $offset = 0, $objectTypes = null)
  124. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByVisualban($value, $limit = 0, $offset = 0, $objectTypes = null)
  125. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByVisualwr($value, $limit = 0, $offset = 0, $objectTypes = null)
  126. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCalibernumber($value, $limit = 0, $offset = 0, $objectTypes = null)
  127. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMovementtype($value, $limit = 0, $offset = 0, $objectTypes = null)
  128. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAccuracy($value, $limit = 0, $offset = 0, $objectTypes = null)
  129. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAccuracy2($value, $limit = 0, $offset = 0, $objectTypes = null)
  130. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAccuracyinterval($value, $limit = 0, $offset = 0, $objectTypes = null)
  131. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByPowerreserve($value, $limit = 0, $offset = 0, $objectTypes = null)
  132. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGasketlife($value, $limit = 0, $offset = 0, $objectTypes = null)
  133. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCase($value, $limit = 0, $offset = 0, $objectTypes = null)
  134. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBackcase($value, $limit = 0, $offset = 0, $objectTypes = null)
  135. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBand($value, $limit = 0, $offset = 0, $objectTypes = null)
  136. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBandWidth($value, $limit = 0, $offset = 0, $objectTypes = null)
  137. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBuckle($value, $limit = 0, $offset = 0, $objectTypes = null)
  138. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGlass($value, $limit = 0, $offset = 0, $objectTypes = null)
  139. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByFormofcase($value, $limit = 0, $offset = 0, $objectTypes = null)
  140. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDial($value, $limit = 0, $offset = 0, $objectTypes = null)
  141. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByColorofdial($value, $limit = 0, $offset = 0, $objectTypes = null)
  142. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByLumibrite($value, $limit = 0, $offset = 0, $objectTypes = null)
  143. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBezel($value, $limit = 0, $offset = 0, $objectTypes = null)
  144. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCrownandbutton($value, $limit = 0, $offset = 0, $objectTypes = null)
  145. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDiamonds($value, $limit = 0, $offset = 0, $objectTypes = null)
  146. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySize($value, $limit = 0, $offset = 0, $objectTypes = null)
  147. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySize2($value, $limit = 0, $offset = 0, $objectTypes = null)
  148. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySize3($value, $limit = 0, $offset = 0, $objectTypes = null)
  149. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWeight_($value, $limit = 0, $offset = 0, $objectTypes = null)
  150. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWaterresistance($value, $limit = 0, $offset = 0, $objectTypes = null)
  151. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOther1($value, $limit = 0, $offset = 0, $objectTypes = null)
  152. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOther2($value, $limit = 0, $offset = 0, $objectTypes = null)
  153. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByLimited($value, $limit = 0, $offset = 0, $objectTypes = null)
  154. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByYear($value, $limit = 0, $offset = 0, $objectTypes = null)
  155. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySeries($value, $limit = 0, $offset = 0, $objectTypes = null)
  156. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByNewsfromdate($value, $limit = 0, $offset = 0, $objectTypes = null)
  157. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByNewstodate($value, $limit = 0, $offset = 0, $objectTypes = null)
  158. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByStatusdetails($value, $limit = 0, $offset = 0, $objectTypes = null)
  159. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGroup($value, $limit = 0, $offset = 0, $objectTypes = null)
  160. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBandfilter($value, $limit = 0, $offset = 0, $objectTypes = null)
  161. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCasefilter($value, $limit = 0, $offset = 0, $objectTypes = null)
  162. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMovementtypefilter($value, $limit = 0, $offset = 0, $objectTypes = null)
  163. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGlassfilter($value, $limit = 0, $offset = 0, $objectTypes = null)
  164. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDiamondsfilter($value, $limit = 0, $offset = 0, $objectTypes = null)
  165. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMainVariant($value, $limit = 0, $offset = 0, $objectTypes = null)
  166. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAllowedAttributeGroups($value, $limit = 0, $offset = 0, $objectTypes = null)
  167. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAttributes($value, $limit = 0, $offset = 0, $objectTypes = null)
  168. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
  169. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByImages($value, $limit = 0, $offset = 0, $objectTypes = null)
  170. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByVideos($value, $limit = 0, $offset = 0, $objectTypes = null)
  171. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOnHold($value, $limit = 0, $offset = 0, $objectTypes = null)
  172. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOnHand($value, $limit = 0, $offset = 0, $objectTypes = null)
  173. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMinimumQuantityToOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
  174. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMaximumQuantityToOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
  175. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByItemQuantityFactor($value, $limit = 0, $offset = 0, $objectTypes = null)
  176. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOutlet($value, $limit = 0, $offset = 0, $objectTypes = null)
  177. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWeight($value, $limit = 0, $offset = 0, $objectTypes = null)
  178. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByHeight($value, $limit = 0, $offset = 0, $objectTypes = null)
  179. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWidth($value, $limit = 0, $offset = 0, $objectTypes = null)
  180. * @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDepth($value, $limit = 0, $offset = 0, $objectTypes = null)
  181. */
  182. class CoreShopProduct extends \CoreShop\Component\Core\Model\Product
  183. {
  184. use \App\Traits\CoresShopProductExtend;
  185. protected $o_classId "cs_product";
  186. protected $o_className "CoreShopProduct";
  187. protected $localizedfields;
  188. protected $sku;
  189. protected $ean;
  190. protected $active;
  191. protected $digitalProduct;
  192. protected $manufacturer;
  193. protected $stores;
  194. protected $orderable;
  195. protected $availability;
  196. protected $refname;
  197. protected $uniqueName;
  198. protected $businessClass;
  199. protected $brand;
  200. protected $collection;
  201. protected $subcollection;
  202. protected $subcollectionseries;
  203. protected $typeofwatch;
  204. protected $style;
  205. protected $visualban;
  206. protected $visualwr;
  207. protected $calibernumber;
  208. protected $movementtype;
  209. protected $accuracy;
  210. protected $accuracy2;
  211. protected $accuracyinterval;
  212. protected $powerreserve;
  213. protected $gasketlife;
  214. protected $case;
  215. protected $backcase;
  216. protected $band;
  217. protected $bandWidth;
  218. protected $buckle;
  219. protected $glass;
  220. protected $formofcase;
  221. protected $dial;
  222. protected $colorofdial;
  223. protected $lumibrite;
  224. protected $bezel;
  225. protected $crownandbutton;
  226. protected $diamonds;
  227. protected $size;
  228. protected $size2;
  229. protected $size3;
  230. protected $weight_;
  231. protected $waterresistance;
  232. protected $other1;
  233. protected $other2;
  234. protected $limited;
  235. protected $year;
  236. protected $series;
  237. protected $newsfromdate;
  238. protected $newstodate;
  239. protected $statusdetails;
  240. protected $group;
  241. protected $bandfilter;
  242. protected $casefilter;
  243. protected $movementtypefilter;
  244. protected $glassfilter;
  245. protected $diamondsfilter;
  246. protected $mainVariant;
  247. protected $allowedAttributeGroups;
  248. protected $attributes;
  249. protected $categories;
  250. protected $images;
  251. protected $videos;
  252. protected $onHold;
  253. protected $onHand;
  254. protected $isTracked;
  255. protected $minimumQuantityToOrder;
  256. protected $maximumQuantityToOrder;
  257. protected $unitDefinitions;
  258. protected $storeValues;
  259. protected $itemQuantityFactor;
  260. protected $wholesalePrice;
  261. protected $wholesaleBuyingPrice;
  262. protected $taxRule;
  263. protected $outlet;
  264. protected $specificPriceRules;
  265. protected $quantityPriceRules;
  266. protected $weight;
  267. protected $height;
  268. protected $width;
  269. protected $depth;
  270. /**
  271. * @param array $values
  272. * @return \Pimcore\Model\DataObject\CoreShopProduct
  273. */
  274. public static function create($values = array()) {
  275.     $object = new static();
  276.     $object->setValues($values);
  277.     return $object;
  278. }
  279. /**
  280. * Get localizedfields - 
  281. * @return \Pimcore\Model\DataObject\Localizedfield|null
  282. */
  283. public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
  284. {
  285.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  286.         $preValue $this->preGetValue("localizedfields");
  287.         if ($preValue !== null) {
  288.             return $preValue;
  289.         }
  290.     }
  291.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  292.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("localizedfields")->isEmpty($data)) {
  293.         try {
  294.             return $this->getValueFromParent("localizedfields");
  295.         } catch (InheritanceParentNotFoundException $e) {
  296.             // no data from parent available, continue ...
  297.         }
  298.     }
  299.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  300.         return $data->getPlain();
  301.     }
  302.     return $data;
  303. }
  304. /**
  305. * Get name - coreshop.product.name
  306. * @return string|null
  307. */
  308. public function getName($language null): ?string
  309. {
  310.     $data $this->getLocalizedfields()->getLocalizedValue("name"$language);
  311.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  312.         $preValue $this->preGetValue("name");
  313.         if ($preValue !== null) {
  314.             return $preValue;
  315.         }
  316.     }
  317.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  318.         return $data->getPlain();
  319.     }
  320.     return $data;
  321. }
  322. /**
  323. * Get shortDescription - coreshop.product.short_description
  324. * @return string|null
  325. */
  326. public function getShortDescription($language null): ?string
  327. {
  328.     $data $this->getLocalizedfields()->getLocalizedValue("shortDescription"$language);
  329.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  330.         $preValue $this->preGetValue("shortDescription");
  331.         if ($preValue !== null) {
  332.             return $preValue;
  333.         }
  334.     }
  335.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  336.         return $data->getPlain();
  337.     }
  338.     return $data;
  339. }
  340. /**
  341. * Get slug - coreshop.product.slug
  342. * @return \Pimcore\Model\DataObject\Data\UrlSlug[]
  343. */
  344. public function getSlug($language null): ?array
  345. {
  346.     $data $this->getLocalizedfields()->getLocalizedValue("slug"$language);
  347.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  348.         $preValue $this->preGetValue("slug");
  349.         if ($preValue !== null) {
  350.             return $preValue;
  351.         }
  352.     }
  353.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  354.         return $data->getPlain();
  355.     }
  356.     return $data;
  357. }
  358. /**
  359. * Get pimcoreMetaTitle - coreshop.product.seo_meta_title
  360. * @return string|null
  361. */
  362. public function getPimcoreMetaTitle($language null): ?string
  363. {
  364.     $data $this->getLocalizedfields()->getLocalizedValue("pimcoreMetaTitle"$language);
  365.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  366.         $preValue $this->preGetValue("pimcoreMetaTitle");
  367.         if ($preValue !== null) {
  368.             return $preValue;
  369.         }
  370.     }
  371.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  372.         return $data->getPlain();
  373.     }
  374.     return $data;
  375. }
  376. /**
  377. * Get pimcoreMetaDescription - coreshop.product.seo_meta_description
  378. * @return string|null
  379. */
  380. public function getPimcoreMetaDescription($language null): ?string
  381. {
  382.     $data $this->getLocalizedfields()->getLocalizedValue("pimcoreMetaDescription"$language);
  383.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  384.         $preValue $this->preGetValue("pimcoreMetaDescription");
  385.         if ($preValue !== null) {
  386.             return $preValue;
  387.         }
  388.     }
  389.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  390.         return $data->getPlain();
  391.     }
  392.     return $data;
  393. }
  394. /**
  395. * Get description - coreshop.product.description
  396. * @return string|null
  397. */
  398. public function getDescription($language null): ?string
  399. {
  400.     $data $this->getLocalizedfields()->getLocalizedValue("description"$language);
  401.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  402.         $preValue $this->preGetValue("description");
  403.         if ($preValue !== null) {
  404.             return $preValue;
  405.         }
  406.     }
  407.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  408.         return $data->getPlain();
  409.     }
  410.     return $data;
  411. }
  412. /**
  413. * Set localizedfields - 
  414. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  415. * @return \Pimcore\Model\DataObject\CoreShopProduct
  416. */
  417. public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
  418. {
  419.     $inheritValues self::getGetInheritedValues();
  420.     self::setGetInheritedValues(false);
  421.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  422.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  423.     $currentData $this->getLocalizedfields();
  424.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  425.     self::setGetInheritedValues($inheritValues);
  426.     $this->markFieldDirty("localizedfields"true);
  427.     $this->localizedfields $localizedfields;
  428.     return $this;
  429. }
  430. /**
  431. * Set name - coreshop.product.name
  432. * @param string|null $name
  433. * @return \Pimcore\Model\DataObject\CoreShopProduct
  434. */
  435. public function setName (?string $name$language null)
  436. {
  437.     $isEqual false;
  438.     $this->getLocalizedfields()->setLocalizedValue("name"$name$language, !$isEqual);
  439.     return $this;
  440. }
  441. /**
  442. * Set shortDescription - coreshop.product.short_description
  443. * @param string|null $shortDescription
  444. * @return \Pimcore\Model\DataObject\CoreShopProduct
  445. */
  446. public function setShortDescription (?string $shortDescription$language null)
  447. {
  448.     $isEqual false;
  449.     $this->getLocalizedfields()->setLocalizedValue("shortDescription"$shortDescription$language, !$isEqual);
  450.     return $this;
  451. }
  452. /**
  453. * Set slug - coreshop.product.slug
  454. * @param \Pimcore\Model\DataObject\Data\UrlSlug[] $slug
  455. * @return \Pimcore\Model\DataObject\CoreShopProduct
  456. */
  457. public function setSlug (?array $slug$language null)
  458. {
  459.     $fd $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("slug");
  460.     $inheritValues self::getGetInheritedValues();
  461.     self::setGetInheritedValues(false);
  462.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  463.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  464.     $currentData $this->getSlug($language);
  465.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  466.     self::setGetInheritedValues($inheritValues);
  467.     $isEqual $fd->isEqual($currentData$slug);
  468.     if (!$isEqual) {
  469.         $this->markFieldDirty("slug"true);
  470.     }
  471.     $this->getLocalizedfields()->setLocalizedValue("slug"$slug$language, !$isEqual);
  472.     return $this;
  473. }
  474. /**
  475. * Set pimcoreMetaTitle - coreshop.product.seo_meta_title
  476. * @param string|null $pimcoreMetaTitle
  477. * @return \Pimcore\Model\DataObject\CoreShopProduct
  478. */
  479. public function setPimcoreMetaTitle (?string $pimcoreMetaTitle$language null)
  480. {
  481.     $isEqual false;
  482.     $this->getLocalizedfields()->setLocalizedValue("pimcoreMetaTitle"$pimcoreMetaTitle$language, !$isEqual);
  483.     return $this;
  484. }
  485. /**
  486. * Set pimcoreMetaDescription - coreshop.product.seo_meta_description
  487. * @param string|null $pimcoreMetaDescription
  488. * @return \Pimcore\Model\DataObject\CoreShopProduct
  489. */
  490. public function setPimcoreMetaDescription (?string $pimcoreMetaDescription$language null)
  491. {
  492.     $isEqual false;
  493.     $this->getLocalizedfields()->setLocalizedValue("pimcoreMetaDescription"$pimcoreMetaDescription$language, !$isEqual);
  494.     return $this;
  495. }
  496. /**
  497. * Set description - coreshop.product.description
  498. * @param string|null $description
  499. * @return \Pimcore\Model\DataObject\CoreShopProduct
  500. */
  501. public function setDescription (?string $description$language null)
  502. {
  503.     $isEqual false;
  504.     $this->getLocalizedfields()->setLocalizedValue("description"$description$language, !$isEqual);
  505.     return $this;
  506. }
  507. /**
  508. * Get sku - coreshop.product.sku
  509. * @return string|null
  510. */
  511. public function getSku(): ?string
  512. {
  513.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  514.         $preValue $this->preGetValue("sku");
  515.         if ($preValue !== null) {
  516.             return $preValue;
  517.         }
  518.     }
  519.     $data $this->sku;
  520.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("sku")->isEmpty($data)) {
  521.         try {
  522.             return $this->getValueFromParent("sku");
  523.         } catch (InheritanceParentNotFoundException $e) {
  524.             // no data from parent available, continue ...
  525.         }
  526.     }
  527.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  528.         return $data->getPlain();
  529.     }
  530.     return $data;
  531. }
  532. /**
  533. * Set sku - coreshop.product.sku
  534. * @param string|null $sku
  535. * @return \Pimcore\Model\DataObject\CoreShopProduct
  536. */
  537. public function setSku(?string $sku)
  538. {
  539.     $this->sku $sku;
  540.     return $this;
  541. }
  542. /**
  543. * Get ean - coreshop.product.ean13
  544. * @return string|null
  545. */
  546. public function getEan(): ?string
  547. {
  548.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  549.         $preValue $this->preGetValue("ean");
  550.         if ($preValue !== null) {
  551.             return $preValue;
  552.         }
  553.     }
  554.     $data $this->ean;
  555.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("ean")->isEmpty($data)) {
  556.         try {
  557.             return $this->getValueFromParent("ean");
  558.         } catch (InheritanceParentNotFoundException $e) {
  559.             // no data from parent available, continue ...
  560.         }
  561.     }
  562.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  563.         return $data->getPlain();
  564.     }
  565.     return $data;
  566. }
  567. /**
  568. * Set ean - coreshop.product.ean13
  569. * @param string|null $ean
  570. * @return \Pimcore\Model\DataObject\CoreShopProduct
  571. */
  572. public function setEan(?string $ean)
  573. {
  574.     $this->ean $ean;
  575.     return $this;
  576. }
  577. /**
  578. * Get active - coreshop.product.active
  579. * @return bool|null
  580. */
  581. public function getActive(): ?bool
  582. {
  583.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  584.         $preValue $this->preGetValue("active");
  585.         if ($preValue !== null) {
  586.             return $preValue;
  587.         }
  588.     }
  589.     $data $this->active;
  590.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("active")->isEmpty($data)) {
  591.         try {
  592.             return $this->getValueFromParent("active");
  593.         } catch (InheritanceParentNotFoundException $e) {
  594.             // no data from parent available, continue ...
  595.         }
  596.     }
  597.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  598.         return $data->getPlain();
  599.     }
  600.     return $data;
  601. }
  602. /**
  603. * Set active - coreshop.product.active
  604. * @param bool|null $active
  605. * @return \Pimcore\Model\DataObject\CoreShopProduct
  606. */
  607. public function setActive(?bool $active)
  608. {
  609.     $this->active $active;
  610.     return $this;
  611. }
  612. /**
  613. * Get digitalProduct - coreshop.product.digital_product
  614. * @return bool|null
  615. */
  616. public function getDigitalProduct(): ?bool
  617. {
  618.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  619.         $preValue $this->preGetValue("digitalProduct");
  620.         if ($preValue !== null) {
  621.             return $preValue;
  622.         }
  623.     }
  624.     $data $this->digitalProduct;
  625.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("digitalProduct")->isEmpty($data)) {
  626.         try {
  627.             return $this->getValueFromParent("digitalProduct");
  628.         } catch (InheritanceParentNotFoundException $e) {
  629.             // no data from parent available, continue ...
  630.         }
  631.     }
  632.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  633.         return $data->getPlain();
  634.     }
  635.     return $data;
  636. }
  637. /**
  638. * Set digitalProduct - coreshop.product.digital_product
  639. * @param bool|null $digitalProduct
  640. * @return \Pimcore\Model\DataObject\CoreShopProduct
  641. */
  642. public function setDigitalProduct(?bool $digitalProduct)
  643. {
  644.     $this->digitalProduct $digitalProduct;
  645.     return $this;
  646. }
  647. /**
  648. * Get manufacturer - coreshop.product.manufacturer
  649. * @return ?\CoreShop\Component\Product\Model\ManufacturerInterface
  650. */
  651. public function getManufacturer(): ?\CoreShop\Component\Product\Model\ManufacturerInterface
  652. {
  653.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  654.         $preValue $this->preGetValue("manufacturer");
  655.         if ($preValue !== null) {
  656.             return $preValue;
  657.         }
  658.     }
  659.     $data $this->getClass()->getFieldDefinition("manufacturer")->preGetData($this);
  660.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("manufacturer")->isEmpty($data)) {
  661.         try {
  662.             return $this->getValueFromParent("manufacturer");
  663.         } catch (InheritanceParentNotFoundException $e) {
  664.             // no data from parent available, continue ...
  665.         }
  666.     }
  667.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  668.         return $data->getPlain();
  669.     }
  670.     return $data;
  671. }
  672. /**
  673. * Set manufacturer - coreshop.product.manufacturer
  674. * @param ?\CoreShop\Component\Product\Model\ManufacturerInterface $manufacturer
  675. * @return \Pimcore\Model\DataObject\CoreShopProduct
  676. */
  677. public function setManufacturer(?\CoreShop\Component\Product\Model\ManufacturerInterface $manufacturer)
  678. {
  679.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
  680.     $fd $this->getClass()->getFieldDefinition("manufacturer");
  681.     $inheritValues self::getGetInheritedValues();
  682.     self::setGetInheritedValues(false);
  683.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  684.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  685.     $currentData $this->getManufacturer();
  686.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  687.     self::setGetInheritedValues($inheritValues);
  688.     $isEqual $fd->isEqual($currentData$manufacturer);
  689.     if (!$isEqual) {
  690.         $this->markFieldDirty("manufacturer"true);
  691.     }
  692.     $this->manufacturer $fd->preSetData($this$manufacturer);
  693.     return $this;
  694. }
  695. /**
  696. * Get stores - coreshop.product.stores
  697. * @return string[]|null
  698. */
  699. public function getStores(): ?array
  700. {
  701.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  702.         $preValue $this->preGetValue("stores");
  703.         if ($preValue !== null) {
  704.             return $preValue;
  705.         }
  706.     }
  707.     $data $this->getClass()->getFieldDefinition("stores")->preGetData($this);
  708.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("stores")->isEmpty($data)) {
  709.         try {
  710.             return $this->getValueFromParent("stores");
  711.         } catch (InheritanceParentNotFoundException $e) {
  712.             // no data from parent available, continue ...
  713.         }
  714.     }
  715.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  716.         return $data->getPlain();
  717.     }
  718.     return $data;
  719. }
  720. /**
  721. * Set stores - coreshop.product.stores
  722. * @param string[]|null $stores
  723. * @return \Pimcore\Model\DataObject\CoreShopProduct
  724. */
  725. public function setStores(?array $stores)
  726. {
  727.     $this->stores $stores;
  728.     return $this;
  729. }
  730. /**
  731. * Get orderable - Online rendelhetÅ‘
  732. * @return bool|null
  733. */
  734. public function getOrderable(): ?bool
  735. {
  736.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  737.         $preValue $this->preGetValue("orderable");
  738.         if ($preValue !== null) {
  739.             return $preValue;
  740.         }
  741.     }
  742.     $data $this->orderable;
  743.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("orderable")->isEmpty($data)) {
  744.         try {
  745.             return $this->getValueFromParent("orderable");
  746.         } catch (InheritanceParentNotFoundException $e) {
  747.             // no data from parent available, continue ...
  748.         }
  749.     }
  750.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  751.         return $data->getPlain();
  752.     }
  753.     return $data;
  754. }
  755. /**
  756. * Set orderable - Online rendelhetÅ‘
  757. * @param bool|null $orderable
  758. * @return \Pimcore\Model\DataObject\CoreShopProduct
  759. */
  760. public function setOrderable(?bool $orderable)
  761. {
  762.     $this->orderable $orderable;
  763.     return $this;
  764. }
  765. /**
  766. * Get availability - Availability
  767. * @return string|null
  768. */
  769. public function getAvailability(): ?string
  770. {
  771.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  772.         $preValue $this->preGetValue("availability");
  773.         if ($preValue !== null) {
  774.             return $preValue;
  775.         }
  776.     }
  777.     $data $this->availability;
  778.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("availability")->isEmpty($data)) {
  779.         try {
  780.             return $this->getValueFromParent("availability");
  781.         } catch (InheritanceParentNotFoundException $e) {
  782.             // no data from parent available, continue ...
  783.         }
  784.     }
  785.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  786.         return $data->getPlain();
  787.     }
  788.     return $data;
  789. }
  790. /**
  791. * Set availability - Availability
  792. * @param string|null $availability
  793. * @return \Pimcore\Model\DataObject\CoreShopProduct
  794. */
  795. public function setAvailability(?string $availability)
  796. {
  797.     $this->availability $availability;
  798.     return $this;
  799. }
  800. /**
  801. * Get refname - coreshop.ui.product.metadata.ref_name
  802. * @return string|null
  803. */
  804. public function getRefname(): ?string
  805. {
  806.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  807.         $preValue $this->preGetValue("refname");
  808.         if ($preValue !== null) {
  809.             return $preValue;
  810.         }
  811.     }
  812.     $data $this->refname;
  813.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("refname")->isEmpty($data)) {
  814.         try {
  815.             return $this->getValueFromParent("refname");
  816.         } catch (InheritanceParentNotFoundException $e) {
  817.             // no data from parent available, continue ...
  818.         }
  819.     }
  820.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  821.         return $data->getPlain();
  822.     }
  823.     return $data;
  824. }
  825. /**
  826. * Set refname - coreshop.ui.product.metadata.ref_name
  827. * @param string|null $refname
  828. * @return \Pimcore\Model\DataObject\CoreShopProduct
  829. */
  830. public function setRefname(?string $refname)
  831. {
  832.     $this->refname $refname;
  833.     return $this;
  834. }
  835. /**
  836. * Get uniqueName - coreshop.ui.product.metadata.uniqueName
  837. * @return string|null
  838. */
  839. public function getUniqueName(): ?string
  840. {
  841.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  842.         $preValue $this->preGetValue("uniqueName");
  843.         if ($preValue !== null) {
  844.             return $preValue;
  845.         }
  846.     }
  847.     $data $this->uniqueName;
  848.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("uniqueName")->isEmpty($data)) {
  849.         try {
  850.             return $this->getValueFromParent("uniqueName");
  851.         } catch (InheritanceParentNotFoundException $e) {
  852.             // no data from parent available, continue ...
  853.         }
  854.     }
  855.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  856.         return $data->getPlain();
  857.     }
  858.     return $data;
  859. }
  860. /**
  861. * Set uniqueName - coreshop.ui.product.metadata.uniqueName
  862. * @param string|null $uniqueName
  863. * @return \Pimcore\Model\DataObject\CoreShopProduct
  864. */
  865. public function setUniqueName(?string $uniqueName)
  866. {
  867.     $this->uniqueName $uniqueName;
  868.     return $this;
  869. }
  870. /**
  871. * Get businessClass - coreshop.ui.product.metadata.uzlet_besorolas
  872. * @return string|null
  873. */
  874. public function getBusinessClass(): ?string
  875. {
  876.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  877.         $preValue $this->preGetValue("businessClass");
  878.         if ($preValue !== null) {
  879.             return $preValue;
  880.         }
  881.     }
  882.     $data $this->businessClass;
  883.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("businessClass")->isEmpty($data)) {
  884.         try {
  885.             return $this->getValueFromParent("businessClass");
  886.         } catch (InheritanceParentNotFoundException $e) {
  887.             // no data from parent available, continue ...
  888.         }
  889.     }
  890.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  891.         return $data->getPlain();
  892.     }
  893.     return $data;
  894. }
  895. /**
  896. * Set businessClass - coreshop.ui.product.metadata.uzlet_besorolas
  897. * @param string|null $businessClass
  898. * @return \Pimcore\Model\DataObject\CoreShopProduct
  899. */
  900. public function setBusinessClass(?string $businessClass)
  901. {
  902.     $this->businessClass $businessClass;
  903.     return $this;
  904. }
  905. /**
  906. * Get brand - coreshop.ui.product.metadata.brand
  907. * @return string|null
  908. */
  909. public function getBrand(): ?string
  910. {
  911.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  912.         $preValue $this->preGetValue("brand");
  913.         if ($preValue !== null) {
  914.             return $preValue;
  915.         }
  916.     }
  917.     $data $this->brand;
  918.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("brand")->isEmpty($data)) {
  919.         try {
  920.             return $this->getValueFromParent("brand");
  921.         } catch (InheritanceParentNotFoundException $e) {
  922.             // no data from parent available, continue ...
  923.         }
  924.     }
  925.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  926.         return $data->getPlain();
  927.     }
  928.     return $data;
  929. }
  930. /**
  931. * Set brand - coreshop.ui.product.metadata.brand
  932. * @param string|null $brand
  933. * @return \Pimcore\Model\DataObject\CoreShopProduct
  934. */
  935. public function setBrand(?string $brand)
  936. {
  937.     $this->brand $brand;
  938.     return $this;
  939. }
  940. /**
  941. * Get collection - coreshop.ui.product.metadata.collection
  942. * @return string|null
  943. */
  944. public function getCollection(): ?string
  945. {
  946.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  947.         $preValue $this->preGetValue("collection");
  948.         if ($preValue !== null) {
  949.             return $preValue;
  950.         }
  951.     }
  952.     $data $this->collection;
  953.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("collection")->isEmpty($data)) {
  954.         try {
  955.             return $this->getValueFromParent("collection");
  956.         } catch (InheritanceParentNotFoundException $e) {
  957.             // no data from parent available, continue ...
  958.         }
  959.     }
  960.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  961.         return $data->getPlain();
  962.     }
  963.     return $data;
  964. }
  965. /**
  966. * Set collection - coreshop.ui.product.metadata.collection
  967. * @param string|null $collection
  968. * @return \Pimcore\Model\DataObject\CoreShopProduct
  969. */
  970. public function setCollection(?string $collection)
  971. {
  972.     $this->collection $collection;
  973.     return $this;
  974. }
  975. /**
  976. * Get subcollection - coreshop.ui.product.metadata.subcollection
  977. * @return string|null
  978. */
  979. public function getSubcollection(): ?string
  980. {
  981.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  982.         $preValue $this->preGetValue("subcollection");
  983.         if ($preValue !== null) {
  984.             return $preValue;
  985.         }
  986.     }
  987.     $data $this->subcollection;
  988.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("subcollection")->isEmpty($data)) {
  989.         try {
  990.             return $this->getValueFromParent("subcollection");
  991.         } catch (InheritanceParentNotFoundException $e) {
  992.             // no data from parent available, continue ...
  993.         }
  994.     }
  995.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  996.         return $data->getPlain();
  997.     }
  998.     return $data;
  999. }
  1000. /**
  1001. * Set subcollection - coreshop.ui.product.metadata.subcollection
  1002. * @param string|null $subcollection
  1003. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1004. */
  1005. public function setSubcollection(?string $subcollection)
  1006. {
  1007.     $this->subcollection $subcollection;
  1008.     return $this;
  1009. }
  1010. /**
  1011. * Get subcollectionseries - coreshop.ui.product.metadata.subcollectionseries
  1012. * @return string|null
  1013. */
  1014. public function getSubcollectionseries(): ?string
  1015. {
  1016.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1017.         $preValue $this->preGetValue("subcollectionseries");
  1018.         if ($preValue !== null) {
  1019.             return $preValue;
  1020.         }
  1021.     }
  1022.     $data $this->subcollectionseries;
  1023.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("subcollectionseries")->isEmpty($data)) {
  1024.         try {
  1025.             return $this->getValueFromParent("subcollectionseries");
  1026.         } catch (InheritanceParentNotFoundException $e) {
  1027.             // no data from parent available, continue ...
  1028.         }
  1029.     }
  1030.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1031.         return $data->getPlain();
  1032.     }
  1033.     return $data;
  1034. }
  1035. /**
  1036. * Set subcollectionseries - coreshop.ui.product.metadata.subcollectionseries
  1037. * @param string|null $subcollectionseries
  1038. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1039. */
  1040. public function setSubcollectionseries(?string $subcollectionseries)
  1041. {
  1042.     $this->subcollectionseries $subcollectionseries;
  1043.     return $this;
  1044. }
  1045. /**
  1046. * Get typeofwatch - coreshop.ui.product.metadata.type_of_watch
  1047. * @return string|null
  1048. */
  1049. public function getTypeofwatch(): ?string
  1050. {
  1051.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1052.         $preValue $this->preGetValue("typeofwatch");
  1053.         if ($preValue !== null) {
  1054.             return $preValue;
  1055.         }
  1056.     }
  1057.     $data $this->typeofwatch;
  1058.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("typeofwatch")->isEmpty($data)) {
  1059.         try {
  1060.             return $this->getValueFromParent("typeofwatch");
  1061.         } catch (InheritanceParentNotFoundException $e) {
  1062.             // no data from parent available, continue ...
  1063.         }
  1064.     }
  1065.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1066.         return $data->getPlain();
  1067.     }
  1068.     return $data;
  1069. }
  1070. /**
  1071. * Set typeofwatch - coreshop.ui.product.metadata.type_of_watch
  1072. * @param string|null $typeofwatch
  1073. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1074. */
  1075. public function setTypeofwatch(?string $typeofwatch)
  1076. {
  1077.     $this->typeofwatch $typeofwatch;
  1078.     return $this;
  1079. }
  1080. /**
  1081. * Get style - coreshop.ui.product.metadata.style
  1082. * @return string|null
  1083. */
  1084. public function getStyle(): ?string
  1085. {
  1086.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1087.         $preValue $this->preGetValue("style");
  1088.         if ($preValue !== null) {
  1089.             return $preValue;
  1090.         }
  1091.     }
  1092.     $data $this->style;
  1093.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("style")->isEmpty($data)) {
  1094.         try {
  1095.             return $this->getValueFromParent("style");
  1096.         } catch (InheritanceParentNotFoundException $e) {
  1097.             // no data from parent available, continue ...
  1098.         }
  1099.     }
  1100.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1101.         return $data->getPlain();
  1102.     }
  1103.     return $data;
  1104. }
  1105. /**
  1106. * Set style - coreshop.ui.product.metadata.style
  1107. * @param string|null $style
  1108. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1109. */
  1110. public function setStyle(?string $style)
  1111. {
  1112.     $this->style $style;
  1113.     return $this;
  1114. }
  1115. /**
  1116. * Get visualban - coreshop.ui.product.metadata.visual_ban
  1117. * @return string|null
  1118. */
  1119. public function getVisualban(): ?string
  1120. {
  1121.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1122.         $preValue $this->preGetValue("visualban");
  1123.         if ($preValue !== null) {
  1124.             return $preValue;
  1125.         }
  1126.     }
  1127.     $data $this->visualban;
  1128.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("visualban")->isEmpty($data)) {
  1129.         try {
  1130.             return $this->getValueFromParent("visualban");
  1131.         } catch (InheritanceParentNotFoundException $e) {
  1132.             // no data from parent available, continue ...
  1133.         }
  1134.     }
  1135.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1136.         return $data->getPlain();
  1137.     }
  1138.     return $data;
  1139. }
  1140. /**
  1141. * Set visualban - coreshop.ui.product.metadata.visual_ban
  1142. * @param string|null $visualban
  1143. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1144. */
  1145. public function setVisualban(?string $visualban)
  1146. {
  1147.     $this->visualban $visualban;
  1148.     return $this;
  1149. }
  1150. /**
  1151. * Get visualwr - coreshop.ui.product.metadata.visual_wr
  1152. * @return string|null
  1153. */
  1154. public function getVisualwr(): ?string
  1155. {
  1156.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1157.         $preValue $this->preGetValue("visualwr");
  1158.         if ($preValue !== null) {
  1159.             return $preValue;
  1160.         }
  1161.     }
  1162.     $data $this->visualwr;
  1163.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("visualwr")->isEmpty($data)) {
  1164.         try {
  1165.             return $this->getValueFromParent("visualwr");
  1166.         } catch (InheritanceParentNotFoundException $e) {
  1167.             // no data from parent available, continue ...
  1168.         }
  1169.     }
  1170.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1171.         return $data->getPlain();
  1172.     }
  1173.     return $data;
  1174. }
  1175. /**
  1176. * Set visualwr - coreshop.ui.product.metadata.visual_wr
  1177. * @param string|null $visualwr
  1178. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1179. */
  1180. public function setVisualwr(?string $visualwr)
  1181. {
  1182.     $this->visualwr $visualwr;
  1183.     return $this;
  1184. }
  1185. /**
  1186. * Get calibernumber - coreshop.ui.product.metadata.caliber_number
  1187. * @return \Pimcore\Model\DataObject\Caliber|null
  1188. */
  1189. public function getCalibernumber(): ?\Pimcore\Model\Element\AbstractElement
  1190. {
  1191.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1192.         $preValue $this->preGetValue("calibernumber");
  1193.         if ($preValue !== null) {
  1194.             return $preValue;
  1195.         }
  1196.     }
  1197.     $data $this->getClass()->getFieldDefinition("calibernumber")->preGetData($this);
  1198.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("calibernumber")->isEmpty($data)) {
  1199.         try {
  1200.             return $this->getValueFromParent("calibernumber");
  1201.         } catch (InheritanceParentNotFoundException $e) {
  1202.             // no data from parent available, continue ...
  1203.         }
  1204.     }
  1205.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1206.         return $data->getPlain();
  1207.     }
  1208.     return $data;
  1209. }
  1210. /**
  1211. * Set calibernumber - coreshop.ui.product.metadata.caliber_number
  1212. * @param \Pimcore\Model\DataObject\Caliber|null $calibernumber
  1213. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1214. */
  1215. public function setCalibernumber(?\Pimcore\Model\Element\AbstractElement $calibernumber)
  1216. {
  1217.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1218.     $fd $this->getClass()->getFieldDefinition("calibernumber");
  1219.     $inheritValues self::getGetInheritedValues();
  1220.     self::setGetInheritedValues(false);
  1221.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1222.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1223.     $currentData $this->getCalibernumber();
  1224.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1225.     self::setGetInheritedValues($inheritValues);
  1226.     $isEqual $fd->isEqual($currentData$calibernumber);
  1227.     if (!$isEqual) {
  1228.         $this->markFieldDirty("calibernumber"true);
  1229.     }
  1230.     $this->calibernumber $fd->preSetData($this$calibernumber);
  1231.     return $this;
  1232. }
  1233. /**
  1234. * Get movementtype - coreshop.ui.product.metadata.movement_type
  1235. * @return string|null
  1236. */
  1237. public function getMovementtype(): ?string
  1238. {
  1239.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1240.         $preValue $this->preGetValue("movementtype");
  1241.         if ($preValue !== null) {
  1242.             return $preValue;
  1243.         }
  1244.     }
  1245.     $data $this->movementtype;
  1246.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("movementtype")->isEmpty($data)) {
  1247.         try {
  1248.             return $this->getValueFromParent("movementtype");
  1249.         } catch (InheritanceParentNotFoundException $e) {
  1250.             // no data from parent available, continue ...
  1251.         }
  1252.     }
  1253.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1254.         return $data->getPlain();
  1255.     }
  1256.     return $data;
  1257. }
  1258. /**
  1259. * Set movementtype - coreshop.ui.product.metadata.movement_type
  1260. * @param string|null $movementtype
  1261. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1262. */
  1263. public function setMovementtype(?string $movementtype)
  1264. {
  1265.     $this->movementtype $movementtype;
  1266.     return $this;
  1267. }
  1268. /**
  1269. * Get accuracy - coreshop.ui.product.metadata.accuracy
  1270. * @return string|null
  1271. */
  1272. public function getAccuracy(): ?string
  1273. {
  1274.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1275.         $preValue $this->preGetValue("accuracy");
  1276.         if ($preValue !== null) {
  1277.             return $preValue;
  1278.         }
  1279.     }
  1280.     $data $this->accuracy;
  1281.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("accuracy")->isEmpty($data)) {
  1282.         try {
  1283.             return $this->getValueFromParent("accuracy");
  1284.         } catch (InheritanceParentNotFoundException $e) {
  1285.             // no data from parent available, continue ...
  1286.         }
  1287.     }
  1288.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1289.         return $data->getPlain();
  1290.     }
  1291.     return $data;
  1292. }
  1293. /**
  1294. * Set accuracy - coreshop.ui.product.metadata.accuracy
  1295. * @param string|null $accuracy
  1296. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1297. */
  1298. public function setAccuracy(?string $accuracy)
  1299. {
  1300.     $this->accuracy $accuracy;
  1301.     return $this;
  1302. }
  1303. /**
  1304. * Get accuracy2 - coreshop.ui.product.metadata.accuracy_2
  1305. * @return string|null
  1306. */
  1307. public function getAccuracy2(): ?string
  1308. {
  1309.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1310.         $preValue $this->preGetValue("accuracy2");
  1311.         if ($preValue !== null) {
  1312.             return $preValue;
  1313.         }
  1314.     }
  1315.     $data $this->accuracy2;
  1316.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("accuracy2")->isEmpty($data)) {
  1317.         try {
  1318.             return $this->getValueFromParent("accuracy2");
  1319.         } catch (InheritanceParentNotFoundException $e) {
  1320.             // no data from parent available, continue ...
  1321.         }
  1322.     }
  1323.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1324.         return $data->getPlain();
  1325.     }
  1326.     return $data;
  1327. }
  1328. /**
  1329. * Set accuracy2 - coreshop.ui.product.metadata.accuracy_2
  1330. * @param string|null $accuracy2
  1331. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1332. */
  1333. public function setAccuracy2(?string $accuracy2)
  1334. {
  1335.     $this->accuracy2 $accuracy2;
  1336.     return $this;
  1337. }
  1338. /**
  1339. * Get accuracyinterval - coreshop.ui.product.metadata.accuracy_interval
  1340. * @return string|null
  1341. */
  1342. public function getAccuracyinterval(): ?string
  1343. {
  1344.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1345.         $preValue $this->preGetValue("accuracyinterval");
  1346.         if ($preValue !== null) {
  1347.             return $preValue;
  1348.         }
  1349.     }
  1350.     $data $this->accuracyinterval;
  1351.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("accuracyinterval")->isEmpty($data)) {
  1352.         try {
  1353.             return $this->getValueFromParent("accuracyinterval");
  1354.         } catch (InheritanceParentNotFoundException $e) {
  1355.             // no data from parent available, continue ...
  1356.         }
  1357.     }
  1358.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1359.         return $data->getPlain();
  1360.     }
  1361.     return $data;
  1362. }
  1363. /**
  1364. * Set accuracyinterval - coreshop.ui.product.metadata.accuracy_interval
  1365. * @param string|null $accuracyinterval
  1366. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1367. */
  1368. public function setAccuracyinterval(?string $accuracyinterval)
  1369. {
  1370.     $this->accuracyinterval $accuracyinterval;
  1371.     return $this;
  1372. }
  1373. /**
  1374. * Get powerreserve - coreshop.ui.product.metadata.power_reserve
  1375. * @return string|null
  1376. */
  1377. public function getPowerreserve(): ?string
  1378. {
  1379.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1380.         $preValue $this->preGetValue("powerreserve");
  1381.         if ($preValue !== null) {
  1382.             return $preValue;
  1383.         }
  1384.     }
  1385.     $data $this->powerreserve;
  1386.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("powerreserve")->isEmpty($data)) {
  1387.         try {
  1388.             return $this->getValueFromParent("powerreserve");
  1389.         } catch (InheritanceParentNotFoundException $e) {
  1390.             // no data from parent available, continue ...
  1391.         }
  1392.     }
  1393.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1394.         return $data->getPlain();
  1395.     }
  1396.     return $data;
  1397. }
  1398. /**
  1399. * Set powerreserve - coreshop.ui.product.metadata.power_reserve
  1400. * @param string|null $powerreserve
  1401. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1402. */
  1403. public function setPowerreserve(?string $powerreserve)
  1404. {
  1405.     $this->powerreserve $powerreserve;
  1406.     return $this;
  1407. }
  1408. /**
  1409. * Get gasketlife - coreshop.ui.product.metadata.gasket_life
  1410. * @return string|null
  1411. */
  1412. public function getGasketlife(): ?string
  1413. {
  1414.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1415.         $preValue $this->preGetValue("gasketlife");
  1416.         if ($preValue !== null) {
  1417.             return $preValue;
  1418.         }
  1419.     }
  1420.     $data $this->gasketlife;
  1421.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("gasketlife")->isEmpty($data)) {
  1422.         try {
  1423.             return $this->getValueFromParent("gasketlife");
  1424.         } catch (InheritanceParentNotFoundException $e) {
  1425.             // no data from parent available, continue ...
  1426.         }
  1427.     }
  1428.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1429.         return $data->getPlain();
  1430.     }
  1431.     return $data;
  1432. }
  1433. /**
  1434. * Set gasketlife - coreshop.ui.product.metadata.gasket_life
  1435. * @param string|null $gasketlife
  1436. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1437. */
  1438. public function setGasketlife(?string $gasketlife)
  1439. {
  1440.     $this->gasketlife $gasketlife;
  1441.     return $this;
  1442. }
  1443. /**
  1444. * Get case - coreshop.ui.product.metadata.case
  1445. * @return string|null
  1446. */
  1447. public function getCase(): ?string
  1448. {
  1449.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1450.         $preValue $this->preGetValue("case");
  1451.         if ($preValue !== null) {
  1452.             return $preValue;
  1453.         }
  1454.     }
  1455.     $data $this->case;
  1456.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("case")->isEmpty($data)) {
  1457.         try {
  1458.             return $this->getValueFromParent("case");
  1459.         } catch (InheritanceParentNotFoundException $e) {
  1460.             // no data from parent available, continue ...
  1461.         }
  1462.     }
  1463.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1464.         return $data->getPlain();
  1465.     }
  1466.     return $data;
  1467. }
  1468. /**
  1469. * Set case - coreshop.ui.product.metadata.case
  1470. * @param string|null $case
  1471. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1472. */
  1473. public function setCase(?string $case)
  1474. {
  1475.     $this->case $case;
  1476.     return $this;
  1477. }
  1478. /**
  1479. * Get backcase - coreshop.ui.product.metadata.backcase
  1480. * @return string|null
  1481. */
  1482. public function getBackcase(): ?string
  1483. {
  1484.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1485.         $preValue $this->preGetValue("backcase");
  1486.         if ($preValue !== null) {
  1487.             return $preValue;
  1488.         }
  1489.     }
  1490.     $data $this->backcase;
  1491.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("backcase")->isEmpty($data)) {
  1492.         try {
  1493.             return $this->getValueFromParent("backcase");
  1494.         } catch (InheritanceParentNotFoundException $e) {
  1495.             // no data from parent available, continue ...
  1496.         }
  1497.     }
  1498.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1499.         return $data->getPlain();
  1500.     }
  1501.     return $data;
  1502. }
  1503. /**
  1504. * Set backcase - coreshop.ui.product.metadata.backcase
  1505. * @param string|null $backcase
  1506. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1507. */
  1508. public function setBackcase(?string $backcase)
  1509. {
  1510.     $this->backcase $backcase;
  1511.     return $this;
  1512. }
  1513. /**
  1514. * Get band - coreshop.ui.product.metadata.band
  1515. * @return string|null
  1516. */
  1517. public function getBand(): ?string
  1518. {
  1519.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1520.         $preValue $this->preGetValue("band");
  1521.         if ($preValue !== null) {
  1522.             return $preValue;
  1523.         }
  1524.     }
  1525.     $data $this->band;
  1526.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("band")->isEmpty($data)) {
  1527.         try {
  1528.             return $this->getValueFromParent("band");
  1529.         } catch (InheritanceParentNotFoundException $e) {
  1530.             // no data from parent available, continue ...
  1531.         }
  1532.     }
  1533.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1534.         return $data->getPlain();
  1535.     }
  1536.     return $data;
  1537. }
  1538. /**
  1539. * Set band - coreshop.ui.product.metadata.band
  1540. * @param string|null $band
  1541. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1542. */
  1543. public function setBand(?string $band)
  1544. {
  1545.     $this->band $band;
  1546.     return $this;
  1547. }
  1548. /**
  1549. * Get bandWidth - coreshop.ui.product.metadata.band_width
  1550. * @return string|null
  1551. */
  1552. public function getBandWidth(): ?string
  1553. {
  1554.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1555.         $preValue $this->preGetValue("bandWidth");
  1556.         if ($preValue !== null) {
  1557.             return $preValue;
  1558.         }
  1559.     }
  1560.     $data $this->bandWidth;
  1561.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("bandWidth")->isEmpty($data)) {
  1562.         try {
  1563.             return $this->getValueFromParent("bandWidth");
  1564.         } catch (InheritanceParentNotFoundException $e) {
  1565.             // no data from parent available, continue ...
  1566.         }
  1567.     }
  1568.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1569.         return $data->getPlain();
  1570.     }
  1571.     return $data;
  1572. }
  1573. /**
  1574. * Set bandWidth - coreshop.ui.product.metadata.band_width
  1575. * @param string|null $bandWidth
  1576. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1577. */
  1578. public function setBandWidth(?string $bandWidth)
  1579. {
  1580.     $this->bandWidth $bandWidth;
  1581.     return $this;
  1582. }
  1583. /**
  1584. * Get buckle - coreshop.ui.product.metadata.buckle
  1585. * @return string|null
  1586. */
  1587. public function getBuckle(): ?string
  1588. {
  1589.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1590.         $preValue $this->preGetValue("buckle");
  1591.         if ($preValue !== null) {
  1592.             return $preValue;
  1593.         }
  1594.     }
  1595.     $data $this->buckle;
  1596.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("buckle")->isEmpty($data)) {
  1597.         try {
  1598.             return $this->getValueFromParent("buckle");
  1599.         } catch (InheritanceParentNotFoundException $e) {
  1600.             // no data from parent available, continue ...
  1601.         }
  1602.     }
  1603.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1604.         return $data->getPlain();
  1605.     }
  1606.     return $data;
  1607. }
  1608. /**
  1609. * Set buckle - coreshop.ui.product.metadata.buckle
  1610. * @param string|null $buckle
  1611. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1612. */
  1613. public function setBuckle(?string $buckle)
  1614. {
  1615.     $this->buckle $buckle;
  1616.     return $this;
  1617. }
  1618. /**
  1619. * Get glass - coreshop.ui.product.metadata.glass
  1620. * @return string|null
  1621. */
  1622. public function getGlass(): ?string
  1623. {
  1624.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1625.         $preValue $this->preGetValue("glass");
  1626.         if ($preValue !== null) {
  1627.             return $preValue;
  1628.         }
  1629.     }
  1630.     $data $this->glass;
  1631.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("glass")->isEmpty($data)) {
  1632.         try {
  1633.             return $this->getValueFromParent("glass");
  1634.         } catch (InheritanceParentNotFoundException $e) {
  1635.             // no data from parent available, continue ...
  1636.         }
  1637.     }
  1638.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1639.         return $data->getPlain();
  1640.     }
  1641.     return $data;
  1642. }
  1643. /**
  1644. * Set glass - coreshop.ui.product.metadata.glass
  1645. * @param string|null $glass
  1646. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1647. */
  1648. public function setGlass(?string $glass)
  1649. {
  1650.     $this->glass $glass;
  1651.     return $this;
  1652. }
  1653. /**
  1654. * Get formofcase - coreshop.ui.product.metadata.form_of_case
  1655. * @return string|null
  1656. */
  1657. public function getFormofcase(): ?string
  1658. {
  1659.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1660.         $preValue $this->preGetValue("formofcase");
  1661.         if ($preValue !== null) {
  1662.             return $preValue;
  1663.         }
  1664.     }
  1665.     $data $this->formofcase;
  1666.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("formofcase")->isEmpty($data)) {
  1667.         try {
  1668.             return $this->getValueFromParent("formofcase");
  1669.         } catch (InheritanceParentNotFoundException $e) {
  1670.             // no data from parent available, continue ...
  1671.         }
  1672.     }
  1673.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1674.         return $data->getPlain();
  1675.     }
  1676.     return $data;
  1677. }
  1678. /**
  1679. * Set formofcase - coreshop.ui.product.metadata.form_of_case
  1680. * @param string|null $formofcase
  1681. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1682. */
  1683. public function setFormofcase(?string $formofcase)
  1684. {
  1685.     $this->formofcase $formofcase;
  1686.     return $this;
  1687. }
  1688. /**
  1689. * Get dial - coreshop.ui.product.metadata.dial
  1690. * @return string|null
  1691. */
  1692. public function getDial(): ?string
  1693. {
  1694.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1695.         $preValue $this->preGetValue("dial");
  1696.         if ($preValue !== null) {
  1697.             return $preValue;
  1698.         }
  1699.     }
  1700.     $data $this->dial;
  1701.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("dial")->isEmpty($data)) {
  1702.         try {
  1703.             return $this->getValueFromParent("dial");
  1704.         } catch (InheritanceParentNotFoundException $e) {
  1705.             // no data from parent available, continue ...
  1706.         }
  1707.     }
  1708.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1709.         return $data->getPlain();
  1710.     }
  1711.     return $data;
  1712. }
  1713. /**
  1714. * Set dial - coreshop.ui.product.metadata.dial
  1715. * @param string|null $dial
  1716. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1717. */
  1718. public function setDial(?string $dial)
  1719. {
  1720.     $this->dial $dial;
  1721.     return $this;
  1722. }
  1723. /**
  1724. * Get colorofdial - coreshop.ui.product.metadata.color_of_dial
  1725. * @return string|null
  1726. */
  1727. public function getColorofdial(): ?string
  1728. {
  1729.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1730.         $preValue $this->preGetValue("colorofdial");
  1731.         if ($preValue !== null) {
  1732.             return $preValue;
  1733.         }
  1734.     }
  1735.     $data $this->colorofdial;
  1736.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("colorofdial")->isEmpty($data)) {
  1737.         try {
  1738.             return $this->getValueFromParent("colorofdial");
  1739.         } catch (InheritanceParentNotFoundException $e) {
  1740.             // no data from parent available, continue ...
  1741.         }
  1742.     }
  1743.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1744.         return $data->getPlain();
  1745.     }
  1746.     return $data;
  1747. }
  1748. /**
  1749. * Set colorofdial - coreshop.ui.product.metadata.color_of_dial
  1750. * @param string|null $colorofdial
  1751. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1752. */
  1753. public function setColorofdial(?string $colorofdial)
  1754. {
  1755.     $this->colorofdial $colorofdial;
  1756.     return $this;
  1757. }
  1758. /**
  1759. * Get lumibrite - coreshop.ui.product.metadata.lumibrite
  1760. * @return string|null
  1761. */
  1762. public function getLumibrite(): ?string
  1763. {
  1764.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1765.         $preValue $this->preGetValue("lumibrite");
  1766.         if ($preValue !== null) {
  1767.             return $preValue;
  1768.         }
  1769.     }
  1770.     $data $this->lumibrite;
  1771.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("lumibrite")->isEmpty($data)) {
  1772.         try {
  1773.             return $this->getValueFromParent("lumibrite");
  1774.         } catch (InheritanceParentNotFoundException $e) {
  1775.             // no data from parent available, continue ...
  1776.         }
  1777.     }
  1778.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1779.         return $data->getPlain();
  1780.     }
  1781.     return $data;
  1782. }
  1783. /**
  1784. * Set lumibrite - coreshop.ui.product.metadata.lumibrite
  1785. * @param string|null $lumibrite
  1786. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1787. */
  1788. public function setLumibrite(?string $lumibrite)
  1789. {
  1790.     $this->lumibrite $lumibrite;
  1791.     return $this;
  1792. }
  1793. /**
  1794. * Get bezel - coreshop.ui.product.metadata.bezel
  1795. * @return string|null
  1796. */
  1797. public function getBezel(): ?string
  1798. {
  1799.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1800.         $preValue $this->preGetValue("bezel");
  1801.         if ($preValue !== null) {
  1802.             return $preValue;
  1803.         }
  1804.     }
  1805.     $data $this->bezel;
  1806.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("bezel")->isEmpty($data)) {
  1807.         try {
  1808.             return $this->getValueFromParent("bezel");
  1809.         } catch (InheritanceParentNotFoundException $e) {
  1810.             // no data from parent available, continue ...
  1811.         }
  1812.     }
  1813.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1814.         return $data->getPlain();
  1815.     }
  1816.     return $data;
  1817. }
  1818. /**
  1819. * Set bezel - coreshop.ui.product.metadata.bezel
  1820. * @param string|null $bezel
  1821. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1822. */
  1823. public function setBezel(?string $bezel)
  1824. {
  1825.     $this->bezel $bezel;
  1826.     return $this;
  1827. }
  1828. /**
  1829. * Get crownandbutton - coreshop.ui.product.metadata.crown_and_button
  1830. * @return string|null
  1831. */
  1832. public function getCrownandbutton(): ?string
  1833. {
  1834.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1835.         $preValue $this->preGetValue("crownandbutton");
  1836.         if ($preValue !== null) {
  1837.             return $preValue;
  1838.         }
  1839.     }
  1840.     $data $this->crownandbutton;
  1841.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("crownandbutton")->isEmpty($data)) {
  1842.         try {
  1843.             return $this->getValueFromParent("crownandbutton");
  1844.         } catch (InheritanceParentNotFoundException $e) {
  1845.             // no data from parent available, continue ...
  1846.         }
  1847.     }
  1848.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1849.         return $data->getPlain();
  1850.     }
  1851.     return $data;
  1852. }
  1853. /**
  1854. * Set crownandbutton - coreshop.ui.product.metadata.crown_and_button
  1855. * @param string|null $crownandbutton
  1856. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1857. */
  1858. public function setCrownandbutton(?string $crownandbutton)
  1859. {
  1860.     $this->crownandbutton $crownandbutton;
  1861.     return $this;
  1862. }
  1863. /**
  1864. * Get diamonds - coreshop.ui.product.metadata.diamonds
  1865. * @return string|null
  1866. */
  1867. public function getDiamonds(): ?string
  1868. {
  1869.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1870.         $preValue $this->preGetValue("diamonds");
  1871.         if ($preValue !== null) {
  1872.             return $preValue;
  1873.         }
  1874.     }
  1875.     $data $this->diamonds;
  1876.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("diamonds")->isEmpty($data)) {
  1877.         try {
  1878.             return $this->getValueFromParent("diamonds");
  1879.         } catch (InheritanceParentNotFoundException $e) {
  1880.             // no data from parent available, continue ...
  1881.         }
  1882.     }
  1883.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1884.         return $data->getPlain();
  1885.     }
  1886.     return $data;
  1887. }
  1888. /**
  1889. * Set diamonds - coreshop.ui.product.metadata.diamonds
  1890. * @param string|null $diamonds
  1891. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1892. */
  1893. public function setDiamonds(?string $diamonds)
  1894. {
  1895.     $this->diamonds $diamonds;
  1896.     return $this;
  1897. }
  1898. /**
  1899. * Get size - coreshop.ui.product.metadata.size
  1900. * @return string|null
  1901. */
  1902. public function getSize(): ?string
  1903. {
  1904.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1905.         $preValue $this->preGetValue("size");
  1906.         if ($preValue !== null) {
  1907.             return $preValue;
  1908.         }
  1909.     }
  1910.     $data $this->size;
  1911.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("size")->isEmpty($data)) {
  1912.         try {
  1913.             return $this->getValueFromParent("size");
  1914.         } catch (InheritanceParentNotFoundException $e) {
  1915.             // no data from parent available, continue ...
  1916.         }
  1917.     }
  1918.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1919.         return $data->getPlain();
  1920.     }
  1921.     return $data;
  1922. }
  1923. /**
  1924. * Set size - coreshop.ui.product.metadata.size
  1925. * @param string|null $size
  1926. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1927. */
  1928. public function setSize(?string $size)
  1929. {
  1930.     $this->size $size;
  1931.     return $this;
  1932. }
  1933. /**
  1934. * Get size2 - coreshop.ui.product.metadata.size_2
  1935. * @return string|null
  1936. */
  1937. public function getSize2(): ?string
  1938. {
  1939.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1940.         $preValue $this->preGetValue("size2");
  1941.         if ($preValue !== null) {
  1942.             return $preValue;
  1943.         }
  1944.     }
  1945.     $data $this->size2;
  1946.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("size2")->isEmpty($data)) {
  1947.         try {
  1948.             return $this->getValueFromParent("size2");
  1949.         } catch (InheritanceParentNotFoundException $e) {
  1950.             // no data from parent available, continue ...
  1951.         }
  1952.     }
  1953.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1954.         return $data->getPlain();
  1955.     }
  1956.     return $data;
  1957. }
  1958. /**
  1959. * Set size2 - coreshop.ui.product.metadata.size_2
  1960. * @param string|null $size2
  1961. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1962. */
  1963. public function setSize2(?string $size2)
  1964. {
  1965.     $this->size2 $size2;
  1966.     return $this;
  1967. }
  1968. /**
  1969. * Get size3 - coreshop.ui.product.metadata.size_3
  1970. * @return string|null
  1971. */
  1972. public function getSize3(): ?string
  1973. {
  1974.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1975.         $preValue $this->preGetValue("size3");
  1976.         if ($preValue !== null) {
  1977.             return $preValue;
  1978.         }
  1979.     }
  1980.     $data $this->size3;
  1981.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("size3")->isEmpty($data)) {
  1982.         try {
  1983.             return $this->getValueFromParent("size3");
  1984.         } catch (InheritanceParentNotFoundException $e) {
  1985.             // no data from parent available, continue ...
  1986.         }
  1987.     }
  1988.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1989.         return $data->getPlain();
  1990.     }
  1991.     return $data;
  1992. }
  1993. /**
  1994. * Set size3 - coreshop.ui.product.metadata.size_3
  1995. * @param string|null $size3
  1996. * @return \Pimcore\Model\DataObject\CoreShopProduct
  1997. */
  1998. public function setSize3(?string $size3)
  1999. {
  2000.     $this->size3 $size3;
  2001.     return $this;
  2002. }
  2003. /**
  2004. * Get weight_ - coreshop.ui.product.metadata.weight
  2005. * @return string|null
  2006. */
  2007. public function getWeight_(): ?string
  2008. {
  2009.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2010.         $preValue $this->preGetValue("weight_");
  2011.         if ($preValue !== null) {
  2012.             return $preValue;
  2013.         }
  2014.     }
  2015.     $data $this->weight_;
  2016.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("weight_")->isEmpty($data)) {
  2017.         try {
  2018.             return $this->getValueFromParent("weight_");
  2019.         } catch (InheritanceParentNotFoundException $e) {
  2020.             // no data from parent available, continue ...
  2021.         }
  2022.     }
  2023.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2024.         return $data->getPlain();
  2025.     }
  2026.     return $data;
  2027. }
  2028. /**
  2029. * Set weight_ - coreshop.ui.product.metadata.weight
  2030. * @param string|null $weight_
  2031. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2032. */
  2033. public function setWeight_(?string $weight_)
  2034. {
  2035.     $this->weight_ $weight_;
  2036.     return $this;
  2037. }
  2038. /**
  2039. * Get waterresistance - coreshop.ui.product.metadata.water_resistance
  2040. * @return string|null
  2041. */
  2042. public function getWaterresistance(): ?string
  2043. {
  2044.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2045.         $preValue $this->preGetValue("waterresistance");
  2046.         if ($preValue !== null) {
  2047.             return $preValue;
  2048.         }
  2049.     }
  2050.     $data $this->waterresistance;
  2051.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("waterresistance")->isEmpty($data)) {
  2052.         try {
  2053.             return $this->getValueFromParent("waterresistance");
  2054.         } catch (InheritanceParentNotFoundException $e) {
  2055.             // no data from parent available, continue ...
  2056.         }
  2057.     }
  2058.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2059.         return $data->getPlain();
  2060.     }
  2061.     return $data;
  2062. }
  2063. /**
  2064. * Set waterresistance - coreshop.ui.product.metadata.water_resistance
  2065. * @param string|null $waterresistance
  2066. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2067. */
  2068. public function setWaterresistance(?string $waterresistance)
  2069. {
  2070.     $this->waterresistance $waterresistance;
  2071.     return $this;
  2072. }
  2073. /**
  2074. * Get other1 - coreshop.ui.product.metadata.other_1
  2075. * @return string|null
  2076. */
  2077. public function getOther1(): ?string
  2078. {
  2079.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2080.         $preValue $this->preGetValue("other1");
  2081.         if ($preValue !== null) {
  2082.             return $preValue;
  2083.         }
  2084.     }
  2085.     $data $this->other1;
  2086.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("other1")->isEmpty($data)) {
  2087.         try {
  2088.             return $this->getValueFromParent("other1");
  2089.         } catch (InheritanceParentNotFoundException $e) {
  2090.             // no data from parent available, continue ...
  2091.         }
  2092.     }
  2093.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2094.         return $data->getPlain();
  2095.     }
  2096.     return $data;
  2097. }
  2098. /**
  2099. * Set other1 - coreshop.ui.product.metadata.other_1
  2100. * @param string|null $other1
  2101. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2102. */
  2103. public function setOther1(?string $other1)
  2104. {
  2105.     $this->other1 $other1;
  2106.     return $this;
  2107. }
  2108. /**
  2109. * Get other2 - coreshop.ui.product.metadata.other_2
  2110. * @return string|null
  2111. */
  2112. public function getOther2(): ?string
  2113. {
  2114.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2115.         $preValue $this->preGetValue("other2");
  2116.         if ($preValue !== null) {
  2117.             return $preValue;
  2118.         }
  2119.     }
  2120.     $data $this->other2;
  2121.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("other2")->isEmpty($data)) {
  2122.         try {
  2123.             return $this->getValueFromParent("other2");
  2124.         } catch (InheritanceParentNotFoundException $e) {
  2125.             // no data from parent available, continue ...
  2126.         }
  2127.     }
  2128.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2129.         return $data->getPlain();
  2130.     }
  2131.     return $data;
  2132. }
  2133. /**
  2134. * Set other2 - coreshop.ui.product.metadata.other_2
  2135. * @param string|null $other2
  2136. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2137. */
  2138. public function setOther2(?string $other2)
  2139. {
  2140.     $this->other2 $other2;
  2141.     return $this;
  2142. }
  2143. /**
  2144. * Get limited - coreshop.ui.product.metadata.limited
  2145. * @return string|null
  2146. */
  2147. public function getLimited(): ?string
  2148. {
  2149.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2150.         $preValue $this->preGetValue("limited");
  2151.         if ($preValue !== null) {
  2152.             return $preValue;
  2153.         }
  2154.     }
  2155.     $data $this->limited;
  2156.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("limited")->isEmpty($data)) {
  2157.         try {
  2158.             return $this->getValueFromParent("limited");
  2159.         } catch (InheritanceParentNotFoundException $e) {
  2160.             // no data from parent available, continue ...
  2161.         }
  2162.     }
  2163.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2164.         return $data->getPlain();
  2165.     }
  2166.     return $data;
  2167. }
  2168. /**
  2169. * Set limited - coreshop.ui.product.metadata.limited
  2170. * @param string|null $limited
  2171. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2172. */
  2173. public function setLimited(?string $limited)
  2174. {
  2175.     $this->limited $limited;
  2176.     return $this;
  2177. }
  2178. /**
  2179. * Get year - coreshop.ui.product.metadata.year
  2180. * @return string|null
  2181. */
  2182. public function getYear(): ?string
  2183. {
  2184.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2185.         $preValue $this->preGetValue("year");
  2186.         if ($preValue !== null) {
  2187.             return $preValue;
  2188.         }
  2189.     }
  2190.     $data $this->year;
  2191.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("year")->isEmpty($data)) {
  2192.         try {
  2193.             return $this->getValueFromParent("year");
  2194.         } catch (InheritanceParentNotFoundException $e) {
  2195.             // no data from parent available, continue ...
  2196.         }
  2197.     }
  2198.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2199.         return $data->getPlain();
  2200.     }
  2201.     return $data;
  2202. }
  2203. /**
  2204. * Set year - coreshop.ui.product.metadata.year
  2205. * @param string|null $year
  2206. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2207. */
  2208. public function setYear(?string $year)
  2209. {
  2210.     $this->year $year;
  2211.     return $this;
  2212. }
  2213. /**
  2214. * Get series - coreshop.ui.product.metadata.series
  2215. * @return string|null
  2216. */
  2217. public function getSeries(): ?string
  2218. {
  2219.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2220.         $preValue $this->preGetValue("series");
  2221.         if ($preValue !== null) {
  2222.             return $preValue;
  2223.         }
  2224.     }
  2225.     $data $this->series;
  2226.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("series")->isEmpty($data)) {
  2227.         try {
  2228.             return $this->getValueFromParent("series");
  2229.         } catch (InheritanceParentNotFoundException $e) {
  2230.             // no data from parent available, continue ...
  2231.         }
  2232.     }
  2233.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2234.         return $data->getPlain();
  2235.     }
  2236.     return $data;
  2237. }
  2238. /**
  2239. * Set series - coreshop.ui.product.metadata.series
  2240. * @param string|null $series
  2241. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2242. */
  2243. public function setSeries(?string $series)
  2244. {
  2245.     $this->series $series;
  2246.     return $this;
  2247. }
  2248. /**
  2249. * Get newsfromdate - coreshop.ui.product.metadata.news_from_date
  2250. * @return \Carbon\Carbon|null
  2251. */
  2252. public function getNewsfromdate(): ?\Carbon\Carbon
  2253. {
  2254.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2255.         $preValue $this->preGetValue("newsfromdate");
  2256.         if ($preValue !== null) {
  2257.             return $preValue;
  2258.         }
  2259.     }
  2260.     $data $this->newsfromdate;
  2261.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("newsfromdate")->isEmpty($data)) {
  2262.         try {
  2263.             return $this->getValueFromParent("newsfromdate");
  2264.         } catch (InheritanceParentNotFoundException $e) {
  2265.             // no data from parent available, continue ...
  2266.         }
  2267.     }
  2268.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2269.         return $data->getPlain();
  2270.     }
  2271.     return $data;
  2272. }
  2273. /**
  2274. * Set newsfromdate - coreshop.ui.product.metadata.news_from_date
  2275. * @param \Carbon\Carbon|null $newsfromdate
  2276. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2277. */
  2278. public function setNewsfromdate(?\Carbon\Carbon $newsfromdate)
  2279. {
  2280.     $this->newsfromdate $newsfromdate;
  2281.     return $this;
  2282. }
  2283. /**
  2284. * Get newstodate - coreshop.ui.product.metadata.news_to_date
  2285. * @return \Carbon\Carbon|null
  2286. */
  2287. public function getNewstodate(): ?\Carbon\Carbon
  2288. {
  2289.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2290.         $preValue $this->preGetValue("newstodate");
  2291.         if ($preValue !== null) {
  2292.             return $preValue;
  2293.         }
  2294.     }
  2295.     $data $this->newstodate;
  2296.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("newstodate")->isEmpty($data)) {
  2297.         try {
  2298.             return $this->getValueFromParent("newstodate");
  2299.         } catch (InheritanceParentNotFoundException $e) {
  2300.             // no data from parent available, continue ...
  2301.         }
  2302.     }
  2303.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2304.         return $data->getPlain();
  2305.     }
  2306.     return $data;
  2307. }
  2308. /**
  2309. * Set newstodate - coreshop.ui.product.metadata.news_to_date
  2310. * @param \Carbon\Carbon|null $newstodate
  2311. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2312. */
  2313. public function setNewstodate(?\Carbon\Carbon $newstodate)
  2314. {
  2315.     $this->newstodate $newstodate;
  2316.     return $this;
  2317. }
  2318. /**
  2319. * Get statusdetails - coreshop.ui.product.metadata.status_details
  2320. * @return string|null
  2321. */
  2322. public function getStatusdetails(): ?string
  2323. {
  2324.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2325.         $preValue $this->preGetValue("statusdetails");
  2326.         if ($preValue !== null) {
  2327.             return $preValue;
  2328.         }
  2329.     }
  2330.     $data $this->statusdetails;
  2331.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("statusdetails")->isEmpty($data)) {
  2332.         try {
  2333.             return $this->getValueFromParent("statusdetails");
  2334.         } catch (InheritanceParentNotFoundException $e) {
  2335.             // no data from parent available, continue ...
  2336.         }
  2337.     }
  2338.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2339.         return $data->getPlain();
  2340.     }
  2341.     return $data;
  2342. }
  2343. /**
  2344. * Set statusdetails - coreshop.ui.product.metadata.status_details
  2345. * @param string|null $statusdetails
  2346. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2347. */
  2348. public function setStatusdetails(?string $statusdetails)
  2349. {
  2350.     $this->statusdetails $statusdetails;
  2351.     return $this;
  2352. }
  2353. /**
  2354. * Get group - coreshop.ui.product.metadata.group
  2355. * @return string|null
  2356. */
  2357. public function getGroup(): ?string
  2358. {
  2359.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2360.         $preValue $this->preGetValue("group");
  2361.         if ($preValue !== null) {
  2362.             return $preValue;
  2363.         }
  2364.     }
  2365.     $data $this->group;
  2366.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("group")->isEmpty($data)) {
  2367.         try {
  2368.             return $this->getValueFromParent("group");
  2369.         } catch (InheritanceParentNotFoundException $e) {
  2370.             // no data from parent available, continue ...
  2371.         }
  2372.     }
  2373.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2374.         return $data->getPlain();
  2375.     }
  2376.     return $data;
  2377. }
  2378. /**
  2379. * Set group - coreshop.ui.product.metadata.group
  2380. * @param string|null $group
  2381. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2382. */
  2383. public function setGroup(?string $group)
  2384. {
  2385.     $this->group $group;
  2386.     return $this;
  2387. }
  2388. /**
  2389. * Get bandfilter - Tok szűrÅ‘
  2390. * @return string|null
  2391. */
  2392. public function getBandfilter(): ?string
  2393. {
  2394.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2395.         $preValue $this->preGetValue("bandfilter");
  2396.         if ($preValue !== null) {
  2397.             return $preValue;
  2398.         }
  2399.     }
  2400.     $data $this->bandfilter;
  2401.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("bandfilter")->isEmpty($data)) {
  2402.         try {
  2403.             return $this->getValueFromParent("bandfilter");
  2404.         } catch (InheritanceParentNotFoundException $e) {
  2405.             // no data from parent available, continue ...
  2406.         }
  2407.     }
  2408.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2409.         return $data->getPlain();
  2410.     }
  2411.     return $data;
  2412. }
  2413. /**
  2414. * Set bandfilter - Tok szűrÅ‘
  2415. * @param string|null $bandfilter
  2416. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2417. */
  2418. public function setBandfilter(?string $bandfilter)
  2419. {
  2420.     $this->bandfilter $bandfilter;
  2421.     return $this;
  2422. }
  2423. /**
  2424. * Get casefilter - Szíj szűrÅ‘
  2425. * @return string|null
  2426. */
  2427. public function getCasefilter(): ?string
  2428. {
  2429.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2430.         $preValue $this->preGetValue("casefilter");
  2431.         if ($preValue !== null) {
  2432.             return $preValue;
  2433.         }
  2434.     }
  2435.     $data $this->casefilter;
  2436.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("casefilter")->isEmpty($data)) {
  2437.         try {
  2438.             return $this->getValueFromParent("casefilter");
  2439.         } catch (InheritanceParentNotFoundException $e) {
  2440.             // no data from parent available, continue ...
  2441.         }
  2442.     }
  2443.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2444.         return $data->getPlain();
  2445.     }
  2446.     return $data;
  2447. }
  2448. /**
  2449. * Set casefilter - Szíj szűrÅ‘
  2450. * @param string|null $casefilter
  2451. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2452. */
  2453. public function setCasefilter(?string $casefilter)
  2454. {
  2455.     $this->casefilter $casefilter;
  2456.     return $this;
  2457. }
  2458. /**
  2459. * Get movementtypefilter - Szerkezet szűrÅ‘
  2460. * @return string|null
  2461. */
  2462. public function getMovementtypefilter(): ?string
  2463. {
  2464.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2465.         $preValue $this->preGetValue("movementtypefilter");
  2466.         if ($preValue !== null) {
  2467.             return $preValue;
  2468.         }
  2469.     }
  2470.     $data $this->movementtypefilter;
  2471.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("movementtypefilter")->isEmpty($data)) {
  2472.         try {
  2473.             return $this->getValueFromParent("movementtypefilter");
  2474.         } catch (InheritanceParentNotFoundException $e) {
  2475.             // no data from parent available, continue ...
  2476.         }
  2477.     }
  2478.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2479.         return $data->getPlain();
  2480.     }
  2481.     return $data;
  2482. }
  2483. /**
  2484. * Set movementtypefilter - Szerkezet szűrÅ‘
  2485. * @param string|null $movementtypefilter
  2486. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2487. */
  2488. public function setMovementtypefilter(?string $movementtypefilter)
  2489. {
  2490.     $this->movementtypefilter $movementtypefilter;
  2491.     return $this;
  2492. }
  2493. /**
  2494. * Get glassfilter - Ãœveg szűrÅ‘
  2495. * @return string|null
  2496. */
  2497. public function getGlassfilter(): ?string
  2498. {
  2499.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2500.         $preValue $this->preGetValue("glassfilter");
  2501.         if ($preValue !== null) {
  2502.             return $preValue;
  2503.         }
  2504.     }
  2505.     $data $this->glassfilter;
  2506.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("glassfilter")->isEmpty($data)) {
  2507.         try {
  2508.             return $this->getValueFromParent("glassfilter");
  2509.         } catch (InheritanceParentNotFoundException $e) {
  2510.             // no data from parent available, continue ...
  2511.         }
  2512.     }
  2513.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2514.         return $data->getPlain();
  2515.     }
  2516.     return $data;
  2517. }
  2518. /**
  2519. * Set glassfilter - Ãœveg szűrÅ‘
  2520. * @param string|null $glassfilter
  2521. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2522. */
  2523. public function setGlassfilter(?string $glassfilter)
  2524. {
  2525.     $this->glassfilter $glassfilter;
  2526.     return $this;
  2527. }
  2528. /**
  2529. * Get diamondsfilter - Ã‰kkÅ‘ szűrÅ‘
  2530. * @return string|null
  2531. */
  2532. public function getDiamondsfilter(): ?string
  2533. {
  2534.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2535.         $preValue $this->preGetValue("diamondsfilter");
  2536.         if ($preValue !== null) {
  2537.             return $preValue;
  2538.         }
  2539.     }
  2540.     $data $this->diamondsfilter;
  2541.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("diamondsfilter")->isEmpty($data)) {
  2542.         try {
  2543.             return $this->getValueFromParent("diamondsfilter");
  2544.         } catch (InheritanceParentNotFoundException $e) {
  2545.             // no data from parent available, continue ...
  2546.         }
  2547.     }
  2548.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2549.         return $data->getPlain();
  2550.     }
  2551.     return $data;
  2552. }
  2553. /**
  2554. * Set diamondsfilter - Ã‰kkÅ‘ szűrÅ‘
  2555. * @param string|null $diamondsfilter
  2556. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2557. */
  2558. public function setDiamondsfilter(?string $diamondsfilter)
  2559. {
  2560.     $this->diamondsfilter $diamondsfilter;
  2561.     return $this;
  2562. }
  2563. /**
  2564. * Get mainVariant - Main Variant
  2565. * @return ?\Pimcore\Model\DataObject\Concrete
  2566. */
  2567. public function getMainVariant(): ?\Pimcore\Model\DataObject\Concrete
  2568. {
  2569.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2570.         $preValue $this->preGetValue("mainVariant");
  2571.         if ($preValue !== null) {
  2572.             return $preValue;
  2573.         }
  2574.     }
  2575.     $data $this->getClass()->getFieldDefinition("mainVariant")->preGetData($this);
  2576.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("mainVariant")->isEmpty($data)) {
  2577.         try {
  2578.             return $this->getValueFromParent("mainVariant");
  2579.         } catch (InheritanceParentNotFoundException $e) {
  2580.             // no data from parent available, continue ...
  2581.         }
  2582.     }
  2583.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2584.         return $data->getPlain();
  2585.     }
  2586.     return $data;
  2587. }
  2588. /**
  2589. * Set mainVariant - Main Variant
  2590. * @param ?\Pimcore\Model\DataObject\Concrete $mainVariant
  2591. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2592. */
  2593. public function setMainVariant(?\Pimcore\Model\DataObject\Concrete $mainVariant)
  2594. {
  2595.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
  2596.     $fd $this->getClass()->getFieldDefinition("mainVariant");
  2597.     $inheritValues self::getGetInheritedValues();
  2598.     self::setGetInheritedValues(false);
  2599.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  2600.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  2601.     $currentData $this->getMainVariant();
  2602.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  2603.     self::setGetInheritedValues($inheritValues);
  2604.     $isEqual $fd->isEqual($currentData$mainVariant);
  2605.     if (!$isEqual) {
  2606.         $this->markFieldDirty("mainVariant"true);
  2607.     }
  2608.     $this->mainVariant $fd->preSetData($this$mainVariant);
  2609.     return $this;
  2610. }
  2611. /**
  2612. * Get allowedAttributeGroups - coreshop.product.allowed_attribute_groups
  2613. * @return ?\CoreShop\Component\Variant\Model\AttributeGroupInterface[]
  2614. */
  2615. public function getAllowedAttributeGroups(): ?array
  2616. {
  2617.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2618.         $preValue $this->preGetValue("allowedAttributeGroups");
  2619.         if ($preValue !== null) {
  2620.             return $preValue;
  2621.         }
  2622.     }
  2623.     $data $this->getClass()->getFieldDefinition("allowedAttributeGroups")->preGetData($this);
  2624.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("allowedAttributeGroups")->isEmpty($data)) {
  2625.         try {
  2626.             return $this->getValueFromParent("allowedAttributeGroups");
  2627.         } catch (InheritanceParentNotFoundException $e) {
  2628.             // no data from parent available, continue ...
  2629.         }
  2630.     }
  2631.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2632.         return $data->getPlain();
  2633.     }
  2634.     return $data;
  2635. }
  2636. /**
  2637. * Set allowedAttributeGroups - coreshop.product.allowed_attribute_groups
  2638. * @param ?\CoreShop\Component\Variant\Model\AttributeGroupInterface[] $allowedAttributeGroups
  2639. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2640. */
  2641. public function setAllowedAttributeGroups(?array $allowedAttributeGroups)
  2642. {
  2643.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
  2644.     $fd $this->getClass()->getFieldDefinition("allowedAttributeGroups");
  2645.     $inheritValues self::getGetInheritedValues();
  2646.     self::setGetInheritedValues(false);
  2647.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  2648.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  2649.     $currentData $this->getAllowedAttributeGroups();
  2650.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  2651.     self::setGetInheritedValues($inheritValues);
  2652.     $isEqual $fd->isEqual($currentData$allowedAttributeGroups);
  2653.     if (!$isEqual) {
  2654.         $this->markFieldDirty("allowedAttributeGroups"true);
  2655.     }
  2656.     $this->allowedAttributeGroups $fd->preSetData($this$allowedAttributeGroups);
  2657.     return $this;
  2658. }
  2659. /**
  2660. * Get attributes - coreshop.product.attributes
  2661. * @return ?\CoreShop\Component\Variant\Model\AttributeInterface[]
  2662. */
  2663. public function getAttributes(): ?array
  2664. {
  2665.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2666.         $preValue $this->preGetValue("attributes");
  2667.         if ($preValue !== null) {
  2668.             return $preValue;
  2669.         }
  2670.     }
  2671.     $data $this->getClass()->getFieldDefinition("attributes")->preGetData($this);
  2672.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("attributes")->isEmpty($data)) {
  2673.         try {
  2674.             return $this->getValueFromParent("attributes");
  2675.         } catch (InheritanceParentNotFoundException $e) {
  2676.             // no data from parent available, continue ...
  2677.         }
  2678.     }
  2679.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2680.         return $data->getPlain();
  2681.     }
  2682.     return $data;
  2683. }
  2684. /**
  2685. * Set attributes - coreshop.product.attributes
  2686. * @param ?\CoreShop\Component\Variant\Model\AttributeInterface[] $attributes
  2687. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2688. */
  2689. public function setAttributes(?array $attributes)
  2690. {
  2691.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
  2692.     $fd $this->getClass()->getFieldDefinition("attributes");
  2693.     $inheritValues self::getGetInheritedValues();
  2694.     self::setGetInheritedValues(false);
  2695.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  2696.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  2697.     $currentData $this->getAttributes();
  2698.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  2699.     self::setGetInheritedValues($inheritValues);
  2700.     $isEqual $fd->isEqual($currentData$attributes);
  2701.     if (!$isEqual) {
  2702.         $this->markFieldDirty("attributes"true);
  2703.     }
  2704.     $this->attributes $fd->preSetData($this$attributes);
  2705.     return $this;
  2706. }
  2707. /**
  2708. * Get categories - coreshop.product.categories
  2709. * @return ?\CoreShop\Component\Product\Model\CategoryInterface[]
  2710. */
  2711. public function getCategories(): ?array
  2712. {
  2713.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2714.         $preValue $this->preGetValue("categories");
  2715.         if ($preValue !== null) {
  2716.             return $preValue;
  2717.         }
  2718.     }
  2719.     $data $this->getClass()->getFieldDefinition("categories")->preGetData($this);
  2720.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("categories")->isEmpty($data)) {
  2721.         try {
  2722.             return $this->getValueFromParent("categories");
  2723.         } catch (InheritanceParentNotFoundException $e) {
  2724.             // no data from parent available, continue ...
  2725.         }
  2726.     }
  2727.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2728.         return $data->getPlain();
  2729.     }
  2730.     return $data;
  2731. }
  2732. /**
  2733. * Set categories - coreshop.product.categories
  2734. * @param ?\CoreShop\Component\Product\Model\CategoryInterface[] $categories
  2735. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2736. */
  2737. public function setCategories(?array $categories)
  2738. {
  2739.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
  2740.     $fd $this->getClass()->getFieldDefinition("categories");
  2741.     $inheritValues self::getGetInheritedValues();
  2742.     self::setGetInheritedValues(false);
  2743.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  2744.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  2745.     $currentData $this->getCategories();
  2746.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  2747.     self::setGetInheritedValues($inheritValues);
  2748.     $isEqual $fd->isEqual($currentData$categories);
  2749.     if (!$isEqual) {
  2750.         $this->markFieldDirty("categories"true);
  2751.     }
  2752.     $this->categories $fd->preSetData($this$categories);
  2753.     return $this;
  2754. }
  2755. /**
  2756. * Get images - coreshop.product.images
  2757. * @return \Pimcore\Model\Asset\Image[] | \Pimcore\Model\DataObject\ExternalMedia[]
  2758. */
  2759. public function getImages(): array
  2760. {
  2761.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2762.         $preValue $this->preGetValue("images");
  2763.         if ($preValue !== null) {
  2764.             return $preValue;
  2765.         }
  2766.     }
  2767.     $data $this->getClass()->getFieldDefinition("images")->preGetData($this);
  2768.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("images")->isEmpty($data)) {
  2769.         try {
  2770.             return $this->getValueFromParent("images");
  2771.         } catch (InheritanceParentNotFoundException $e) {
  2772.             // no data from parent available, continue ...
  2773.         }
  2774.     }
  2775.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2776.         return $data->getPlain();
  2777.     }
  2778.     return $data;
  2779. }
  2780. /**
  2781. * Set images - coreshop.product.images
  2782. * @param \Pimcore\Model\Asset\Image[] | \Pimcore\Model\DataObject\ExternalMedia[] $images
  2783. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2784. */
  2785. public function setImages(?array $images)
  2786. {
  2787.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
  2788.     $fd $this->getClass()->getFieldDefinition("images");
  2789.     $inheritValues self::getGetInheritedValues();
  2790.     self::setGetInheritedValues(false);
  2791.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  2792.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  2793.     $currentData $this->getImages();
  2794.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  2795.     self::setGetInheritedValues($inheritValues);
  2796.     $isEqual $fd->isEqual($currentData$images);
  2797.     if (!$isEqual) {
  2798.         $this->markFieldDirty("images"true);
  2799.     }
  2800.     $this->images $fd->preSetData($this$images);
  2801.     return $this;
  2802. }
  2803. /**
  2804. * Get videos - Videók
  2805. * @return \Pimcore\Model\DataObject\ExternalMedia[]
  2806. */
  2807. public function getVideos(): array
  2808. {
  2809.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2810.         $preValue $this->preGetValue("videos");
  2811.         if ($preValue !== null) {
  2812.             return $preValue;
  2813.         }
  2814.     }
  2815.     $data $this->getClass()->getFieldDefinition("videos")->preGetData($this);
  2816.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("videos")->isEmpty($data)) {
  2817.         try {
  2818.             return $this->getValueFromParent("videos");
  2819.         } catch (InheritanceParentNotFoundException $e) {
  2820.             // no data from parent available, continue ...
  2821.         }
  2822.     }
  2823.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2824.         return $data->getPlain();
  2825.     }
  2826.     return $data;
  2827. }
  2828. /**
  2829. * Set videos - Videók
  2830. * @param \Pimcore\Model\DataObject\ExternalMedia[] $videos
  2831. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2832. */
  2833. public function setVideos(?array $videos)
  2834. {
  2835.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
  2836.     $fd $this->getClass()->getFieldDefinition("videos");
  2837.     $inheritValues self::getGetInheritedValues();
  2838.     self::setGetInheritedValues(false);
  2839.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  2840.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  2841.     $currentData $this->getVideos();
  2842.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  2843.     self::setGetInheritedValues($inheritValues);
  2844.     $isEqual $fd->isEqual($currentData$videos);
  2845.     if (!$isEqual) {
  2846.         $this->markFieldDirty("videos"true);
  2847.     }
  2848.     $this->videos $fd->preSetData($this$videos);
  2849.     return $this;
  2850. }
  2851. /**
  2852. * Get onHold - coreshop.product.on_hold
  2853. * @return int|null
  2854. */
  2855. public function getOnHold(): ?int
  2856. {
  2857.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2858.         $preValue $this->preGetValue("onHold");
  2859.         if ($preValue !== null) {
  2860.             return $preValue;
  2861.         }
  2862.     }
  2863.     $data $this->onHold;
  2864.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("onHold")->isEmpty($data)) {
  2865.         try {
  2866.             return $this->getValueFromParent("onHold");
  2867.         } catch (InheritanceParentNotFoundException $e) {
  2868.             // no data from parent available, continue ...
  2869.         }
  2870.     }
  2871.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2872.         return $data->getPlain();
  2873.     }
  2874.     return $data;
  2875. }
  2876. /**
  2877. * Set onHold - coreshop.product.on_hold
  2878. * @param int|null $onHold
  2879. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2880. */
  2881. public function setOnHold(?int $onHold)
  2882. {
  2883.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2884.     $fd $this->getClass()->getFieldDefinition("onHold");
  2885.     $this->onHold $fd->preSetData($this$onHold);
  2886.     return $this;
  2887. }
  2888. /**
  2889. * Get onHand - coreshop.product.on_hand
  2890. * @return int|null
  2891. */
  2892. public function getOnHand(): ?int
  2893. {
  2894.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2895.         $preValue $this->preGetValue("onHand");
  2896.         if ($preValue !== null) {
  2897.             return $preValue;
  2898.         }
  2899.     }
  2900.     $data $this->onHand;
  2901.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("onHand")->isEmpty($data)) {
  2902.         try {
  2903.             return $this->getValueFromParent("onHand");
  2904.         } catch (InheritanceParentNotFoundException $e) {
  2905.             // no data from parent available, continue ...
  2906.         }
  2907.     }
  2908.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2909.         return $data->getPlain();
  2910.     }
  2911.     return $data;
  2912. }
  2913. /**
  2914. * Set onHand - coreshop.product.on_hand
  2915. * @param int|null $onHand
  2916. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2917. */
  2918. public function setOnHand(?int $onHand)
  2919. {
  2920.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2921.     $fd $this->getClass()->getFieldDefinition("onHand");
  2922.     $this->onHand $fd->preSetData($this$onHand);
  2923.     return $this;
  2924. }
  2925. /**
  2926. * Get isTracked - coreshop.product.is_tracked
  2927. * @return bool|null
  2928. */
  2929. public function getIsTracked(): ?bool
  2930. {
  2931.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2932.         $preValue $this->preGetValue("isTracked");
  2933.         if ($preValue !== null) {
  2934.             return $preValue;
  2935.         }
  2936.     }
  2937.     $data $this->isTracked;
  2938.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("isTracked")->isEmpty($data)) {
  2939.         try {
  2940.             return $this->getValueFromParent("isTracked");
  2941.         } catch (InheritanceParentNotFoundException $e) {
  2942.             // no data from parent available, continue ...
  2943.         }
  2944.     }
  2945.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2946.         return $data->getPlain();
  2947.     }
  2948.     return $data;
  2949. }
  2950. /**
  2951. * Set isTracked - coreshop.product.is_tracked
  2952. * @param bool|null $isTracked
  2953. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2954. */
  2955. public function setIsTracked(?bool $isTracked)
  2956. {
  2957.     $this->isTracked $isTracked;
  2958.     return $this;
  2959. }
  2960. /**
  2961. * Get minimumQuantityToOrder - coreshop.product.minimum_quantity_to_order
  2962. * @return int|null
  2963. */
  2964. public function getMinimumQuantityToOrder(): ?int
  2965. {
  2966.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2967.         $preValue $this->preGetValue("minimumQuantityToOrder");
  2968.         if ($preValue !== null) {
  2969.             return $preValue;
  2970.         }
  2971.     }
  2972.     $data $this->minimumQuantityToOrder;
  2973.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("minimumQuantityToOrder")->isEmpty($data)) {
  2974.         try {
  2975.             return $this->getValueFromParent("minimumQuantityToOrder");
  2976.         } catch (InheritanceParentNotFoundException $e) {
  2977.             // no data from parent available, continue ...
  2978.         }
  2979.     }
  2980.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  2981.         return $data->getPlain();
  2982.     }
  2983.     return $data;
  2984. }
  2985. /**
  2986. * Set minimumQuantityToOrder - coreshop.product.minimum_quantity_to_order
  2987. * @param int|null $minimumQuantityToOrder
  2988. * @return \Pimcore\Model\DataObject\CoreShopProduct
  2989. */
  2990. public function setMinimumQuantityToOrder(?int $minimumQuantityToOrder)
  2991. {
  2992.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  2993.     $fd $this->getClass()->getFieldDefinition("minimumQuantityToOrder");
  2994.     $this->minimumQuantityToOrder $fd->preSetData($this$minimumQuantityToOrder);
  2995.     return $this;
  2996. }
  2997. /**
  2998. * Get maximumQuantityToOrder - coreshop.product.maximal_quantity_to_order
  2999. * @return int|null
  3000. */
  3001. public function getMaximumQuantityToOrder(): ?int
  3002. {
  3003.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3004.         $preValue $this->preGetValue("maximumQuantityToOrder");
  3005.         if ($preValue !== null) {
  3006.             return $preValue;
  3007.         }
  3008.     }
  3009.     $data $this->maximumQuantityToOrder;
  3010.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("maximumQuantityToOrder")->isEmpty($data)) {
  3011.         try {
  3012.             return $this->getValueFromParent("maximumQuantityToOrder");
  3013.         } catch (InheritanceParentNotFoundException $e) {
  3014.             // no data from parent available, continue ...
  3015.         }
  3016.     }
  3017.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3018.         return $data->getPlain();
  3019.     }
  3020.     return $data;
  3021. }
  3022. /**
  3023. * Set maximumQuantityToOrder - coreshop.product.maximal_quantity_to_order
  3024. * @param int|null $maximumQuantityToOrder
  3025. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3026. */
  3027. public function setMaximumQuantityToOrder(?int $maximumQuantityToOrder)
  3028. {
  3029.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  3030.     $fd $this->getClass()->getFieldDefinition("maximumQuantityToOrder");
  3031.     $this->maximumQuantityToOrder $fd->preSetData($this$maximumQuantityToOrder);
  3032.     return $this;
  3033. }
  3034. /**
  3035. * Get unitDefinitions - coreshop.product.unit_definitions
  3036. * @return ?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface
  3037. */
  3038. public function getUnitDefinitions(): ?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface
  3039. {
  3040.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3041.         $preValue $this->preGetValue("unitDefinitions");
  3042.         if ($preValue !== null) {
  3043.             return $preValue;
  3044.         }
  3045.     }
  3046.     $data $this->getClass()->getFieldDefinition("unitDefinitions")->preGetData($this);
  3047.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("unitDefinitions")->isEmpty($data)) {
  3048.         try {
  3049.             return $this->getValueFromParent("unitDefinitions");
  3050.         } catch (InheritanceParentNotFoundException $e) {
  3051.             // no data from parent available, continue ...
  3052.         }
  3053.     }
  3054.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3055.         return $data->getPlain();
  3056.     }
  3057.     return $data;
  3058. }
  3059. /**
  3060. * Set unitDefinitions - coreshop.product.unit_definitions
  3061. * @param ?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface $unitDefinitions
  3062. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3063. */
  3064. public function setUnitDefinitions(?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface $unitDefinitions)
  3065. {
  3066.     /** @var \CoreShop\Bundle\ProductBundle\CoreExtension\ProductUnitDefinitions $fd */
  3067.     $fd $this->getClass()->getFieldDefinition("unitDefinitions");
  3068.     $this->unitDefinitions $fd->preSetData($this$unitDefinitions);
  3069.     return $this;
  3070. }
  3071. /**
  3072. * Get storeValues - coreshop.product.store_values
  3073. *
  3074. * @param \CoreShop\Component\Store\Model\StoreInterface $store
  3075. *
  3076. * @return null|\CoreShop\Component\Core\Model\ProductStoreValuesInterface
  3077. */
  3078. public function getStoreValuesForStore (\CoreShop\Component\Store\Model\StoreInterface $store): ?\CoreShop\Component\Core\Model\ProductStoreValuesInterface {
  3079.     $this->storeValues $this->getClass()->getFieldDefinition("storeValues")->preGetData($this);
  3080.     $data $this->storeValues;
  3081.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("storeValues")->isEmpty($data)) {
  3082.         try {
  3083.             return $this->getValueFromParent("storeValuesForStore"$store);
  3084.         } catch (InheritanceParentNotFoundException $e) {
  3085.             // no data from parent available, continue ... 
  3086.         }
  3087.     }
  3088.     if (is_array($data)) {
  3089.         /** @var \CoreShop\Component\Core\Model\ProductStoreValuesInterface $storeValuesBlock */
  3090.         foreach ($data as $storeValuesBlock) {
  3091.             if ($storeValuesBlock->getStore()->getId() === $store->getId()) {
  3092.                 return $storeValuesBlock;
  3093.             }
  3094.         }
  3095.     }
  3096.     return null;
  3097. }
  3098. /**
  3099. * Get All storeValues - coreshop.product.store_values
  3100. * @return \CoreShop\Component\Core\Model\ProductStoreValuesInterface[]
  3101. */
  3102. public function getStoreValues (): array  {
  3103.     $this->storeValues $this->getClass()->getFieldDefinition("storeValues")->preGetData($this);
  3104.         if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3105.         $preValue $this->preGetValue("storeValues");
  3106.         if ($preValue !== null) {
  3107.             return $preValue;
  3108.         }
  3109.     }
  3110.     $data $this->getClass()->getFieldDefinition("storeValues")->preGetData($this);
  3111.     return $data;
  3112. }
  3113. /**
  3114. * Get storeValues - coreshop.product.store_values
  3115. *
  3116. * @param string $type
  3117. * @param \CoreShop\Component\Store\Model\StoreInterface $store
  3118. *
  3119. * @return mixed
  3120. */
  3121. public function getStoreValuesOfType (string $type\CoreShop\Component\Store\Model\StoreInterface $store) {
  3122.     $storeValue $this->getStoreValuesForStore($store);
  3123.     if ($storeValue instanceof \CoreShop\Component\Core\Model\ProductStoreValuesInterface) {
  3124.         $getter sprintf('get%s'ucfirst($type));
  3125.         if (method_exists($storeValue$getter)) {
  3126.             return $storeValue->$getter();
  3127.         }
  3128.     }
  3129.     
  3130.     return null;
  3131. }
  3132. /**
  3133. * Set storeValues - coreshop.product.store_values
  3134. *
  3135. * @param \CoreShop\Component\Core\Model\ProductStoreValuesInterface $storeValues
  3136. * @param \CoreShop\Component\Store\Model\StoreInterface $store
  3137. *
  3138. * @return static
  3139. */
  3140. public function setStoreValuesForStore(\CoreShop\Component\Core\Model\ProductStoreValuesInterface $storeValues\CoreShop\Component\Store\Model\StoreInterface $store): self {
  3141.     $this->storeValues[$store->getId()] = $storeValues;
  3142.     $this->storeValues $this->getClass()->getFieldDefinition("storeValues")->preSetData($this$this->storeValues);
  3143.     return $this;
  3144. }
  3145. /**
  3146. * Set All storeValues - coreshop.product.store_values
  3147. *
  3148. * @param \CoreShop\Component\Core\Model\ProductStoreValuesInterface[] $storeValues
  3149. *
  3150. * @return static
  3151. */
  3152. public function setStoreValues (array $storeValues): self {
  3153.     $this->storeValues $storeValues;
  3154.     $this->storeValues $this->getClass()->getFieldDefinition("storeValues")->preSetData($this$this->storeValues);
  3155.     return $this;
  3156. }
  3157. /**
  3158. * Set storeValues - coreshop.product.store_values
  3159. *
  3160. * @param string $type
  3161. * @param mixed $value
  3162. * @param \CoreShop\Component\Store\Model\StoreInterface $store
  3163. *
  3164. * @return static
  3165. */
  3166. public function setStoreValuesOfType (string $type$value\CoreShop\Component\Store\Model\StoreInterface $store): self {
  3167.     $storeValue \CoreShop\Component\Pimcore\DataObject\InheritanceHelper::useInheritedValues(function() use ($store) {
  3168.         return $this->getStoreValuesForStore($store);
  3169.     }, false);
  3170.     
  3171.     if (!$storeValue instanceof \CoreShop\Component\Core\Model\ProductStoreValuesInterface) {
  3172.         $storeValue $this->getClass()->getFieldDefinition("storeValues")->createNew($this$store);
  3173.     }
  3174.     
  3175.     $setter sprintf('set%s'ucfirst($type));
  3176.     
  3177.     if (method_exists($storeValue$setter)) {
  3178.         $storeValue->$setter($value);
  3179.     }
  3180.     
  3181.     $this->setStoreValuesForStore($storeValue$store);
  3182.     
  3183.     return $this;
  3184. }
  3185. /**
  3186. * Get itemQuantityFactor - coreshop.product.item_quantity_factor
  3187. * @return int|null
  3188. */
  3189. public function getItemQuantityFactor(): ?int
  3190. {
  3191.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3192.         $preValue $this->preGetValue("itemQuantityFactor");
  3193.         if ($preValue !== null) {
  3194.             return $preValue;
  3195.         }
  3196.     }
  3197.     $data $this->itemQuantityFactor;
  3198.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("itemQuantityFactor")->isEmpty($data)) {
  3199.         try {
  3200.             return $this->getValueFromParent("itemQuantityFactor");
  3201.         } catch (InheritanceParentNotFoundException $e) {
  3202.             // no data from parent available, continue ...
  3203.         }
  3204.     }
  3205.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3206.         return $data->getPlain();
  3207.     }
  3208.     return $data;
  3209. }
  3210. /**
  3211. * Set itemQuantityFactor - coreshop.product.item_quantity_factor
  3212. * @param int|null $itemQuantityFactor
  3213. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3214. */
  3215. public function setItemQuantityFactor(?int $itemQuantityFactor)
  3216. {
  3217.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  3218.     $fd $this->getClass()->getFieldDefinition("itemQuantityFactor");
  3219.     $this->itemQuantityFactor $fd->preSetData($this$itemQuantityFactor);
  3220.     return $this;
  3221. }
  3222. /**
  3223. * Get wholesalePrice - coreshop.product.wholesale_price
  3224. * @return int
  3225. */
  3226. public function getWholesalePrice (): int {
  3227.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3228.         $preValue $this->preGetValue("wholesalePrice");
  3229.         if ($preValue !== null) {
  3230.             return $preValue;
  3231.         }
  3232.     }
  3233.     $data $this->getClass()->getFieldDefinition("wholesalePrice")->preGetData($this);
  3234.     if(\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("wholesalePrice")->isEmpty($data)) {
  3235.         try {
  3236.             return $this->getValueFromParent("wholesalePrice");
  3237.         } catch (InheritanceParentNotFoundException $e) {
  3238.             // no data from parent available, continue ... 
  3239.         }
  3240.     }
  3241.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3242.             return $data->getPlain();
  3243.     }
  3244.     return $data;
  3245. }
  3246. /**
  3247. * Set wholesalePrice - coreshop.product.wholesale_price
  3248. * @param int $wholesalePrice
  3249. * @return \Pimcore\Model\DataObject\FieldCollection\Data\CoreShopProduct
  3250. */
  3251. public function setWholesalePrice (int $wholesalePrice) {
  3252.     $fd $this->getClass()->getFieldDefinition("wholesalePrice");
  3253.     $this->wholesalePrice $wholesalePrice;
  3254.     return $this;
  3255. }
  3256. /**
  3257. * Get wholesaleBuyingPrice - coreshop.product.wholesale_buying_price
  3258. * @return ?\CoreShop\Component\Currency\Model\Money
  3259. */
  3260. public function getWholesaleBuyingPrice(): ?\CoreShop\Component\Currency\Model\Money
  3261. {
  3262.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3263.         $preValue $this->preGetValue("wholesaleBuyingPrice");
  3264.         if ($preValue !== null) {
  3265.             return $preValue;
  3266.         }
  3267.     }
  3268.     $data $this->getClass()->getFieldDefinition("wholesaleBuyingPrice")->preGetData($this);
  3269.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("wholesaleBuyingPrice")->isEmpty($data)) {
  3270.         try {
  3271.             return $this->getValueFromParent("wholesaleBuyingPrice");
  3272.         } catch (InheritanceParentNotFoundException $e) {
  3273.             // no data from parent available, continue ...
  3274.         }
  3275.     }
  3276.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3277.         return $data->getPlain();
  3278.     }
  3279.     return $data;
  3280. }
  3281. /**
  3282. * Set wholesaleBuyingPrice - coreshop.product.wholesale_buying_price
  3283. * @param ?\CoreShop\Component\Currency\Model\Money $wholesaleBuyingPrice
  3284. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3285. */
  3286. public function setWholesaleBuyingPrice(?\CoreShop\Component\Currency\Model\Money $wholesaleBuyingPrice)
  3287. {
  3288.     $this->wholesaleBuyingPrice $wholesaleBuyingPrice;
  3289.     return $this;
  3290. }
  3291. /**
  3292. * Get taxRule - coreshop.product.tax_rule
  3293. * @return null|\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface
  3294. */
  3295. public function getTaxRule(): ?\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface
  3296. {
  3297.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3298.         $preValue $this->preGetValue("taxRule");
  3299.         if ($preValue !== null) {
  3300.             return $preValue;
  3301.         }
  3302.     }
  3303.     $data $this->getClass()->getFieldDefinition("taxRule")->preGetData($this);
  3304.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("taxRule")->isEmpty($data)) {
  3305.         try {
  3306.             return $this->getValueFromParent("taxRule");
  3307.         } catch (InheritanceParentNotFoundException $e) {
  3308.             // no data from parent available, continue ...
  3309.         }
  3310.     }
  3311.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3312.         return $data->getPlain();
  3313.     }
  3314.     return $data;
  3315. }
  3316. /**
  3317. * Set taxRule - coreshop.product.tax_rule
  3318. * @param null|\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface $taxRule
  3319. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3320. */
  3321. public function setTaxRule(?\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface $taxRule)
  3322. {
  3323.     /** @var \CoreShop\Bundle\TaxationBundle\CoreExtension\TaxRuleGroup $fd */
  3324.     $fd $this->getClass()->getFieldDefinition("taxRule");
  3325.     $this->taxRule $fd->preSetData($this$taxRule);
  3326.     return $this;
  3327. }
  3328. /**
  3329. * Get outlet - Outlet
  3330. * @return bool|null
  3331. */
  3332. public function getOutlet(): ?bool
  3333. {
  3334.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3335.         $preValue $this->preGetValue("outlet");
  3336.         if ($preValue !== null) {
  3337.             return $preValue;
  3338.         }
  3339.     }
  3340.     $data $this->outlet;
  3341.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("outlet")->isEmpty($data)) {
  3342.         try {
  3343.             return $this->getValueFromParent("outlet");
  3344.         } catch (InheritanceParentNotFoundException $e) {
  3345.             // no data from parent available, continue ...
  3346.         }
  3347.     }
  3348.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3349.         return $data->getPlain();
  3350.     }
  3351.     return $data;
  3352. }
  3353. /**
  3354. * Set outlet - Outlet
  3355. * @param bool|null $outlet
  3356. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3357. */
  3358. public function setOutlet(?bool $outlet)
  3359. {
  3360.     $this->outlet $outlet;
  3361.     return $this;
  3362. }
  3363. /**
  3364. * Get specificPriceRules - coreshop.product.product_specific_price_rules
  3365. * @return array
  3366. */
  3367. public function getSpecificPriceRules(): array
  3368. {
  3369.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3370.         $preValue $this->preGetValue("specificPriceRules");
  3371.         if ($preValue !== null) {
  3372.             return $preValue;
  3373.         }
  3374.     }
  3375.     $data $this->getClass()->getFieldDefinition("specificPriceRules")->preGetData($this);
  3376.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("specificPriceRules")->isEmpty($data)) {
  3377.         try {
  3378.             return $this->getValueFromParent("specificPriceRules");
  3379.         } catch (InheritanceParentNotFoundException $e) {
  3380.             // no data from parent available, continue ...
  3381.         }
  3382.     }
  3383.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3384.         return $data->getPlain();
  3385.     }
  3386.     return $data;
  3387. }
  3388. /**
  3389. * Set specificPriceRules - coreshop.product.product_specific_price_rules
  3390. * @param array $specificPriceRules
  3391. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3392. */
  3393. public function setSpecificPriceRules(array $specificPriceRules)
  3394. {
  3395.     /** @var \CoreShop\Bundle\ProductBundle\CoreExtension\ProductSpecificPriceRules $fd */
  3396.     $fd $this->getClass()->getFieldDefinition("specificPriceRules");
  3397.     $this->specificPriceRules $fd->preSetData($this$specificPriceRules);
  3398.     return $this;
  3399. }
  3400. /**
  3401. * Get quantityPriceRules - coreshop.product.quantity_price_rules
  3402. * @return array
  3403. */
  3404. public function getQuantityPriceRules(): array
  3405. {
  3406.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3407.         $preValue $this->preGetValue("quantityPriceRules");
  3408.         if ($preValue !== null) {
  3409.             return $preValue;
  3410.         }
  3411.     }
  3412.     $data $this->getClass()->getFieldDefinition("quantityPriceRules")->preGetData($this);
  3413.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("quantityPriceRules")->isEmpty($data)) {
  3414.         try {
  3415.             return $this->getValueFromParent("quantityPriceRules");
  3416.         } catch (InheritanceParentNotFoundException $e) {
  3417.             // no data from parent available, continue ...
  3418.         }
  3419.     }
  3420.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3421.         return $data->getPlain();
  3422.     }
  3423.     return $data;
  3424. }
  3425. /**
  3426. * Set quantityPriceRules - coreshop.product.quantity_price_rules
  3427. * @param array $quantityPriceRules
  3428. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3429. */
  3430. public function setQuantityPriceRules(array $quantityPriceRules)
  3431. {
  3432.     /** @var \CoreShop\Bundle\ProductQuantityPriceRulesBundle\CoreExtension\ProductQuantityPriceRules $fd */
  3433.     $fd $this->getClass()->getFieldDefinition("quantityPriceRules");
  3434.     $this->quantityPriceRules $fd->preSetData($this$quantityPriceRules);
  3435.     return $this;
  3436. }
  3437. /**
  3438. * Get weight - coreshop.product.weight
  3439. * @return float|null
  3440. */
  3441. public function getWeight(): ?float
  3442. {
  3443.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3444.         $preValue $this->preGetValue("weight");
  3445.         if ($preValue !== null) {
  3446.             return $preValue;
  3447.         }
  3448.     }
  3449.     $data $this->weight;
  3450.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("weight")->isEmpty($data)) {
  3451.         try {
  3452.             return $this->getValueFromParent("weight");
  3453.         } catch (InheritanceParentNotFoundException $e) {
  3454.             // no data from parent available, continue ...
  3455.         }
  3456.     }
  3457.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3458.         return $data->getPlain();
  3459.     }
  3460.     return $data;
  3461. }
  3462. /**
  3463. * Set weight - coreshop.product.weight
  3464. * @param float|null $weight
  3465. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3466. */
  3467. public function setWeight(?float $weight)
  3468. {
  3469.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  3470.     $fd $this->getClass()->getFieldDefinition("weight");
  3471.     $this->weight $fd->preSetData($this$weight);
  3472.     return $this;
  3473. }
  3474. /**
  3475. * Get height - coreshop.product.height
  3476. * @return float|null
  3477. */
  3478. public function getHeight(): ?float
  3479. {
  3480.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3481.         $preValue $this->preGetValue("height");
  3482.         if ($preValue !== null) {
  3483.             return $preValue;
  3484.         }
  3485.     }
  3486.     $data $this->height;
  3487.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("height")->isEmpty($data)) {
  3488.         try {
  3489.             return $this->getValueFromParent("height");
  3490.         } catch (InheritanceParentNotFoundException $e) {
  3491.             // no data from parent available, continue ...
  3492.         }
  3493.     }
  3494.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3495.         return $data->getPlain();
  3496.     }
  3497.     return $data;
  3498. }
  3499. /**
  3500. * Set height - coreshop.product.height
  3501. * @param float|null $height
  3502. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3503. */
  3504. public function setHeight(?float $height)
  3505. {
  3506.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  3507.     $fd $this->getClass()->getFieldDefinition("height");
  3508.     $this->height $fd->preSetData($this$height);
  3509.     return $this;
  3510. }
  3511. /**
  3512. * Get width - coreshop.product.width
  3513. * @return float|null
  3514. */
  3515. public function getWidth(): ?float
  3516. {
  3517.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3518.         $preValue $this->preGetValue("width");
  3519.         if ($preValue !== null) {
  3520.             return $preValue;
  3521.         }
  3522.     }
  3523.     $data $this->width;
  3524.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("width")->isEmpty($data)) {
  3525.         try {
  3526.             return $this->getValueFromParent("width");
  3527.         } catch (InheritanceParentNotFoundException $e) {
  3528.             // no data from parent available, continue ...
  3529.         }
  3530.     }
  3531.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3532.         return $data->getPlain();
  3533.     }
  3534.     return $data;
  3535. }
  3536. /**
  3537. * Set width - coreshop.product.width
  3538. * @param float|null $width
  3539. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3540. */
  3541. public function setWidth(?float $width)
  3542. {
  3543.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  3544.     $fd $this->getClass()->getFieldDefinition("width");
  3545.     $this->width $fd->preSetData($this$width);
  3546.     return $this;
  3547. }
  3548. /**
  3549. * Get depth - coreshop.product.depth
  3550. * @return float|null
  3551. */
  3552. public function getDepth(): ?float
  3553. {
  3554.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  3555.         $preValue $this->preGetValue("depth");
  3556.         if ($preValue !== null) {
  3557.             return $preValue;
  3558.         }
  3559.     }
  3560.     $data $this->depth;
  3561.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("depth")->isEmpty($data)) {
  3562.         try {
  3563.             return $this->getValueFromParent("depth");
  3564.         } catch (InheritanceParentNotFoundException $e) {
  3565.             // no data from parent available, continue ...
  3566.         }
  3567.     }
  3568.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  3569.         return $data->getPlain();
  3570.     }
  3571.     return $data;
  3572. }
  3573. /**
  3574. * Set depth - coreshop.product.depth
  3575. * @param float|null $depth
  3576. * @return \Pimcore\Model\DataObject\CoreShopProduct
  3577. */
  3578. public function setDepth(?float $depth)
  3579. {
  3580.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  3581.     $fd $this->getClass()->getFieldDefinition("depth");
  3582.     $this->depth $fd->preSetData($this$depth);
  3583.     return $this;
  3584. }
  3585. }