var/classes/DataObject/Product.php line 105

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: yes
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - nome [input]
  8.  * - codice [input]
  9.  * - url3d [input]
  10.  * - posizione [numeric]
  11.  * - localizedfields [localizedfields]
  12.  * -- url [urlSlug]
  13.  * -- descrizione [wysiwyg]
  14.  * - consumoCuoio [numeric]
  15.  * - consumoPelle [numeric]
  16.  * - consumoStoffa [numeric]
  17.  * - imballo [numeric]
  18.  * - volume [numeric]
  19.  * - peso [numeric]
  20.  * - hb [numeric]
  21.  * - hs [numeric]
  22.  * - profondita [numeric]
  23.  * - lunghezza [numeric]
  24.  * - altezza [numeric]
  25.  * - fotoPricipale [image]
  26.  * - foto2 [image]
  27.  * - foto3 [image]
  28.  * - foto4 [image]
  29.  * - categories [manyToManyObjectRelation]
  30.  * - famiglia [manyToManyObjectRelation]
  31.  * - correlati [manyToManyObjectRelation]
  32.  * - tag [manyToManyObjectRelation]
  33.  * - tipologia [manyToManyObjectRelation]
  34.  * - stile [manyToManyObjectRelation]
  35.  * - materialeStruttura [manyToManyObjectRelation]
  36.  * - specifiche [manyToManyObjectRelation]
  37.  * - utilizzo [manyToManyObjectRelation]
  38.  * - contract [manyToManyObjectRelation]
  39.  * - rivestimenti [manyToManyObjectRelation]
  40.  * - finiture [manyToManyObjectRelation]
  41.  * - varianti [objectbricks]
  42.  * - variantiFrassino [objectbricks]
  43.  * - fustoGrezzo [objectbricks]
  44.  * - fustoGrezzoFrassino [objectbricks]
  45.  * - pannelliGommeTappezzeria [objectbricks]
  46.  * - materialeImballo [objectbricks]
  47.  * - componentiLegno [objectbricks]
  48.  * - componentiLegnoFrassino [objectbricks]
  49.  * - componentiPaglia [objectbricks]
  50.  * - tipiDiVerniciatura [objectbricks]
  51.  * - tipiDiVerniciaturaFrassino [objectbricks]
  52.  * - tappezzeriaStoffa [objectbricks]
  53.  * - tappezzeriaPelle [objectbricks]
  54.  * - imballoSedieFinite [objectbricks]
  55.  * - consumi [objectbricks]
  56.  * - fasceDiSconto [objectbricks]
  57.  * - altro [objectbricks]
  58.  * - altroFrassino [objectbricks]
  59.  */
  60. namespace Pimcore\Model\DataObject;
  61. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  62. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  63. /**
  64. * @method static \Pimcore\Model\DataObject\Product\Listing getList(array $config = [])
  65. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByNome($value, $limit = 0, $offset = 0, $objectTypes = null)
  66. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCodice($value, $limit = 0, $offset = 0, $objectTypes = null)
  67. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUrl3d($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPosizione($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUrl($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByDescrizione($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConsumoCuoio($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConsumoPelle($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConsumoStoffa($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByImballo($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByVolume($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPeso($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByHb($value, $limit = 0, $offset = 0, $objectTypes = null)
  79. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByHs($value, $limit = 0, $offset = 0, $objectTypes = null)
  80. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByProfondita($value, $limit = 0, $offset = 0, $objectTypes = null)
  81. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLunghezza($value, $limit = 0, $offset = 0, $objectTypes = null)
  82. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByAltezza($value, $limit = 0, $offset = 0, $objectTypes = null)
  83. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFotoPricipale($value, $limit = 0, $offset = 0, $objectTypes = null)
  84. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFoto2($value, $limit = 0, $offset = 0, $objectTypes = null)
  85. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFoto3($value, $limit = 0, $offset = 0, $objectTypes = null)
  86. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFoto4($value, $limit = 0, $offset = 0, $objectTypes = null)
  87. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
  88. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFamiglia($value, $limit = 0, $offset = 0, $objectTypes = null)
  89. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCorrelati($value, $limit = 0, $offset = 0, $objectTypes = null)
  90. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByTag($value, $limit = 0, $offset = 0, $objectTypes = null)
  91. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByTipologia($value, $limit = 0, $offset = 0, $objectTypes = null)
  92. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByStile($value, $limit = 0, $offset = 0, $objectTypes = null)
  93. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByMaterialeStruttura($value, $limit = 0, $offset = 0, $objectTypes = null)
  94. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getBySpecifiche($value, $limit = 0, $offset = 0, $objectTypes = null)
  95. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUtilizzo($value, $limit = 0, $offset = 0, $objectTypes = null)
  96. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByContract($value, $limit = 0, $offset = 0, $objectTypes = null)
  97. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByRivestimenti($value, $limit = 0, $offset = 0, $objectTypes = null)
  98. * @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFiniture($value, $limit = 0, $offset = 0, $objectTypes = null)
  99. */
  100. class Product extends \App\Model\Product\AbstractProduct
  101. {
  102. protected $o_classId "prod";
  103. protected $o_className "Product";
  104. protected $nome;
  105. protected $codice;
  106. protected $url3d;
  107. protected $posizione;
  108. protected $localizedfields;
  109. protected $consumoCuoio;
  110. protected $consumoPelle;
  111. protected $consumoStoffa;
  112. protected $imballo;
  113. protected $volume;
  114. protected $peso;
  115. protected $hb;
  116. protected $hs;
  117. protected $profondita;
  118. protected $lunghezza;
  119. protected $altezza;
  120. protected $fotoPricipale;
  121. protected $foto2;
  122. protected $foto3;
  123. protected $foto4;
  124. protected $categories;
  125. protected $famiglia;
  126. protected $correlati;
  127. protected $tag;
  128. protected $tipologia;
  129. protected $stile;
  130. protected $materialeStruttura;
  131. protected $specifiche;
  132. protected $utilizzo;
  133. protected $contract;
  134. protected $rivestimenti;
  135. protected $finiture;
  136. protected $varianti;
  137. protected $variantiFrassino;
  138. protected $fustoGrezzo;
  139. protected $fustoGrezzoFrassino;
  140. protected $pannelliGommeTappezzeria;
  141. protected $materialeImballo;
  142. protected $componentiLegno;
  143. protected $componentiLegnoFrassino;
  144. protected $componentiPaglia;
  145. protected $tipiDiVerniciatura;
  146. protected $tipiDiVerniciaturaFrassino;
  147. protected $tappezzeriaStoffa;
  148. protected $tappezzeriaPelle;
  149. protected $imballoSedieFinite;
  150. protected $consumi;
  151. protected $fasceDiSconto;
  152. protected $altro;
  153. protected $altroFrassino;
  154. /**
  155. * @param array $values
  156. * @return \Pimcore\Model\DataObject\Product
  157. */
  158. public static function create($values = array()) {
  159.     $object = new static();
  160.     $object->setValues($values);
  161.     return $object;
  162. }
  163. /**
  164. * Get nome - Nome
  165. * @return string|null
  166. */
  167. public function getNome(): ?string
  168. {
  169.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  170.         $preValue $this->preGetValue("nome");
  171.         if ($preValue !== null) {
  172.             return $preValue;
  173.         }
  174.     }
  175.     $data $this->nome;
  176.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("nome")->isEmpty($data)) {
  177.         try {
  178.             return $this->getValueFromParent("nome");
  179.         } catch (InheritanceParentNotFoundException $e) {
  180.             // no data from parent available, continue ...
  181.         }
  182.     }
  183.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  184.         return $data->getPlain();
  185.     }
  186.     return $data;
  187. }
  188. /**
  189. * Set nome - Nome
  190. * @param string|null $nome
  191. * @return \Pimcore\Model\DataObject\Product
  192. */
  193. public function setNome(?string $nome)
  194. {
  195.     $this->nome $nome;
  196.     return $this;
  197. }
  198. /**
  199. * Get codice - Codice
  200. * @return string|null
  201. */
  202. public function getCodice(): ?string
  203. {
  204.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  205.         $preValue $this->preGetValue("codice");
  206.         if ($preValue !== null) {
  207.             return $preValue;
  208.         }
  209.     }
  210.     $data $this->codice;
  211.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("codice")->isEmpty($data)) {
  212.         try {
  213.             return $this->getValueFromParent("codice");
  214.         } catch (InheritanceParentNotFoundException $e) {
  215.             // no data from parent available, continue ...
  216.         }
  217.     }
  218.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  219.         return $data->getPlain();
  220.     }
  221.     return $data;
  222. }
  223. /**
  224. * Set codice - Codice
  225. * @param string|null $codice
  226. * @return \Pimcore\Model\DataObject\Product
  227. */
  228. public function setCodice(?string $codice)
  229. {
  230.     $this->codice $codice;
  231.     return $this;
  232. }
  233. /**
  234. * Get url3d - Url3d
  235. * @return string|null
  236. */
  237. public function getUrl3d(): ?string
  238. {
  239.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  240.         $preValue $this->preGetValue("url3d");
  241.         if ($preValue !== null) {
  242.             return $preValue;
  243.         }
  244.     }
  245.     $data $this->url3d;
  246.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("url3d")->isEmpty($data)) {
  247.         try {
  248.             return $this->getValueFromParent("url3d");
  249.         } catch (InheritanceParentNotFoundException $e) {
  250.             // no data from parent available, continue ...
  251.         }
  252.     }
  253.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  254.         return $data->getPlain();
  255.     }
  256.     return $data;
  257. }
  258. /**
  259. * Set url3d - Url3d
  260. * @param string|null $url3d
  261. * @return \Pimcore\Model\DataObject\Product
  262. */
  263. public function setUrl3d(?string $url3d)
  264. {
  265.     $this->url3d $url3d;
  266.     return $this;
  267. }
  268. /**
  269. * Get posizione - Posizione
  270. * @return int|null
  271. */
  272. public function getPosizione(): ?int
  273. {
  274.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  275.         $preValue $this->preGetValue("posizione");
  276.         if ($preValue !== null) {
  277.             return $preValue;
  278.         }
  279.     }
  280.     $data $this->posizione;
  281.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("posizione")->isEmpty($data)) {
  282.         try {
  283.             return $this->getValueFromParent("posizione");
  284.         } catch (InheritanceParentNotFoundException $e) {
  285.             // no data from parent available, continue ...
  286.         }
  287.     }
  288.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  289.         return $data->getPlain();
  290.     }
  291.     return $data;
  292. }
  293. /**
  294. * Set posizione - Posizione
  295. * @param int|null $posizione
  296. * @return \Pimcore\Model\DataObject\Product
  297. */
  298. public function setPosizione(?int $posizione)
  299. {
  300.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  301.     $fd $this->getClass()->getFieldDefinition("posizione");
  302.     $this->posizione $fd->preSetData($this$posizione);
  303.     return $this;
  304. }
  305. /**
  306. * Get localizedfields - 
  307. * @return \Pimcore\Model\DataObject\Localizedfield|null
  308. */
  309. public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
  310. {
  311.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  312.         $preValue $this->preGetValue("localizedfields");
  313.         if ($preValue !== null) {
  314.             return $preValue;
  315.         }
  316.     }
  317.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  318.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("localizedfields")->isEmpty($data)) {
  319.         try {
  320.             return $this->getValueFromParent("localizedfields");
  321.         } catch (InheritanceParentNotFoundException $e) {
  322.             // no data from parent available, continue ...
  323.         }
  324.     }
  325.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  326.         return $data->getPlain();
  327.     }
  328.     return $data;
  329. }
  330. /**
  331. * Get url - Url
  332. * @return \Pimcore\Model\DataObject\Data\UrlSlug[]
  333. */
  334. public function getUrl($language null): ?array
  335. {
  336.     $data $this->getLocalizedfields()->getLocalizedValue("url"$language);
  337.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  338.         $preValue $this->preGetValue("url");
  339.         if ($preValue !== null) {
  340.             return $preValue;
  341.         }
  342.     }
  343.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  344.         return $data->getPlain();
  345.     }
  346.     return $data;
  347. }
  348. /**
  349. * Get descrizione - Descrizione
  350. * @return string|null
  351. */
  352. public function getDescrizione($language null): ?string
  353. {
  354.     $data $this->getLocalizedfields()->getLocalizedValue("descrizione"$language);
  355.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  356.         $preValue $this->preGetValue("descrizione");
  357.         if ($preValue !== null) {
  358.             return $preValue;
  359.         }
  360.     }
  361.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  362.         return $data->getPlain();
  363.     }
  364.     return $data;
  365. }
  366. /**
  367. * Set localizedfields - 
  368. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  369. * @return \Pimcore\Model\DataObject\Product
  370. */
  371. public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
  372. {
  373.     $inheritValues self::getGetInheritedValues();
  374.     self::setGetInheritedValues(false);
  375.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  376.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  377.     $currentData $this->getLocalizedfields();
  378.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  379.     self::setGetInheritedValues($inheritValues);
  380.     $this->markFieldDirty("localizedfields"true);
  381.     $this->localizedfields $localizedfields;
  382.     return $this;
  383. }
  384. /**
  385. * Set url - Url
  386. * @param \Pimcore\Model\DataObject\Data\UrlSlug[] $url
  387. * @return \Pimcore\Model\DataObject\Product
  388. */
  389. public function setUrl (?array $url$language null)
  390. {
  391.     $fd $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("url");
  392.     $inheritValues self::getGetInheritedValues();
  393.     self::setGetInheritedValues(false);
  394.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  395.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  396.     $currentData $this->getUrl($language);
  397.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  398.     self::setGetInheritedValues($inheritValues);
  399.     $isEqual $fd->isEqual($currentData$url);
  400.     if (!$isEqual) {
  401.         $this->markFieldDirty("url"true);
  402.     }
  403.     $this->getLocalizedfields()->setLocalizedValue("url"$url$language, !$isEqual);
  404.     return $this;
  405. }
  406. /**
  407. * Set descrizione - Descrizione
  408. * @param string|null $descrizione
  409. * @return \Pimcore\Model\DataObject\Product
  410. */
  411. public function setDescrizione (?string $descrizione$language null)
  412. {
  413.     $isEqual false;
  414.     $this->getLocalizedfields()->setLocalizedValue("descrizione"$descrizione$language, !$isEqual);
  415.     return $this;
  416. }
  417. /**
  418. * Get consumoCuoio - Consumo Cuoio
  419. * @return float|null
  420. */
  421. public function getConsumoCuoio(): ?float
  422. {
  423.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  424.         $preValue $this->preGetValue("consumoCuoio");
  425.         if ($preValue !== null) {
  426.             return $preValue;
  427.         }
  428.     }
  429.     $data $this->consumoCuoio;
  430.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("consumoCuoio")->isEmpty($data)) {
  431.         try {
  432.             return $this->getValueFromParent("consumoCuoio");
  433.         } catch (InheritanceParentNotFoundException $e) {
  434.             // no data from parent available, continue ...
  435.         }
  436.     }
  437.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  438.         return $data->getPlain();
  439.     }
  440.     return $data;
  441. }
  442. /**
  443. * Set consumoCuoio - Consumo Cuoio
  444. * @param float|null $consumoCuoio
  445. * @return \Pimcore\Model\DataObject\Product
  446. */
  447. public function setConsumoCuoio(?float $consumoCuoio)
  448. {
  449.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  450.     $fd $this->getClass()->getFieldDefinition("consumoCuoio");
  451.     $this->consumoCuoio $fd->preSetData($this$consumoCuoio);
  452.     return $this;
  453. }
  454. /**
  455. * Get consumoPelle - Consumo Pelle
  456. * @return float|null
  457. */
  458. public function getConsumoPelle(): ?float
  459. {
  460.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  461.         $preValue $this->preGetValue("consumoPelle");
  462.         if ($preValue !== null) {
  463.             return $preValue;
  464.         }
  465.     }
  466.     $data $this->consumoPelle;
  467.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("consumoPelle")->isEmpty($data)) {
  468.         try {
  469.             return $this->getValueFromParent("consumoPelle");
  470.         } catch (InheritanceParentNotFoundException $e) {
  471.             // no data from parent available, continue ...
  472.         }
  473.     }
  474.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  475.         return $data->getPlain();
  476.     }
  477.     return $data;
  478. }
  479. /**
  480. * Set consumoPelle - Consumo Pelle
  481. * @param float|null $consumoPelle
  482. * @return \Pimcore\Model\DataObject\Product
  483. */
  484. public function setConsumoPelle(?float $consumoPelle)
  485. {
  486.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  487.     $fd $this->getClass()->getFieldDefinition("consumoPelle");
  488.     $this->consumoPelle $fd->preSetData($this$consumoPelle);
  489.     return $this;
  490. }
  491. /**
  492. * Get consumoStoffa - Consumo Stoffa
  493. * @return float|null
  494. */
  495. public function getConsumoStoffa(): ?float
  496. {
  497.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  498.         $preValue $this->preGetValue("consumoStoffa");
  499.         if ($preValue !== null) {
  500.             return $preValue;
  501.         }
  502.     }
  503.     $data $this->consumoStoffa;
  504.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("consumoStoffa")->isEmpty($data)) {
  505.         try {
  506.             return $this->getValueFromParent("consumoStoffa");
  507.         } catch (InheritanceParentNotFoundException $e) {
  508.             // no data from parent available, continue ...
  509.         }
  510.     }
  511.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  512.         return $data->getPlain();
  513.     }
  514.     return $data;
  515. }
  516. /**
  517. * Set consumoStoffa - Consumo Stoffa
  518. * @param float|null $consumoStoffa
  519. * @return \Pimcore\Model\DataObject\Product
  520. */
  521. public function setConsumoStoffa(?float $consumoStoffa)
  522. {
  523.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  524.     $fd $this->getClass()->getFieldDefinition("consumoStoffa");
  525.     $this->consumoStoffa $fd->preSetData($this$consumoStoffa);
  526.     return $this;
  527. }
  528. /**
  529. * Get imballo - Imballo
  530. * @return float|null
  531. */
  532. public function getImballo(): ?float
  533. {
  534.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  535.         $preValue $this->preGetValue("imballo");
  536.         if ($preValue !== null) {
  537.             return $preValue;
  538.         }
  539.     }
  540.     $data $this->imballo;
  541.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("imballo")->isEmpty($data)) {
  542.         try {
  543.             return $this->getValueFromParent("imballo");
  544.         } catch (InheritanceParentNotFoundException $e) {
  545.             // no data from parent available, continue ...
  546.         }
  547.     }
  548.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  549.         return $data->getPlain();
  550.     }
  551.     return $data;
  552. }
  553. /**
  554. * Set imballo - Imballo
  555. * @param float|null $imballo
  556. * @return \Pimcore\Model\DataObject\Product
  557. */
  558. public function setImballo(?float $imballo)
  559. {
  560.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  561.     $fd $this->getClass()->getFieldDefinition("imballo");
  562.     $this->imballo $fd->preSetData($this$imballo);
  563.     return $this;
  564. }
  565. /**
  566. * Get volume - Volume
  567. * @return float|null
  568. */
  569. public function getVolume(): ?float
  570. {
  571.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  572.         $preValue $this->preGetValue("volume");
  573.         if ($preValue !== null) {
  574.             return $preValue;
  575.         }
  576.     }
  577.     $data $this->volume;
  578.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("volume")->isEmpty($data)) {
  579.         try {
  580.             return $this->getValueFromParent("volume");
  581.         } catch (InheritanceParentNotFoundException $e) {
  582.             // no data from parent available, continue ...
  583.         }
  584.     }
  585.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  586.         return $data->getPlain();
  587.     }
  588.     return $data;
  589. }
  590. /**
  591. * Set volume - Volume
  592. * @param float|null $volume
  593. * @return \Pimcore\Model\DataObject\Product
  594. */
  595. public function setVolume(?float $volume)
  596. {
  597.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  598.     $fd $this->getClass()->getFieldDefinition("volume");
  599.     $this->volume $fd->preSetData($this$volume);
  600.     return $this;
  601. }
  602. /**
  603. * Get peso - Peso
  604. * @return float|null
  605. */
  606. public function getPeso(): ?float
  607. {
  608.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  609.         $preValue $this->preGetValue("peso");
  610.         if ($preValue !== null) {
  611.             return $preValue;
  612.         }
  613.     }
  614.     $data $this->peso;
  615.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("peso")->isEmpty($data)) {
  616.         try {
  617.             return $this->getValueFromParent("peso");
  618.         } catch (InheritanceParentNotFoundException $e) {
  619.             // no data from parent available, continue ...
  620.         }
  621.     }
  622.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  623.         return $data->getPlain();
  624.     }
  625.     return $data;
  626. }
  627. /**
  628. * Set peso - Peso
  629. * @param float|null $peso
  630. * @return \Pimcore\Model\DataObject\Product
  631. */
  632. public function setPeso(?float $peso)
  633. {
  634.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  635.     $fd $this->getClass()->getFieldDefinition("peso");
  636.     $this->peso $fd->preSetData($this$peso);
  637.     return $this;
  638. }
  639. /**
  640. * Get hb - Hb
  641. * @return float|null
  642. */
  643. public function getHb(): ?float
  644. {
  645.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  646.         $preValue $this->preGetValue("hb");
  647.         if ($preValue !== null) {
  648.             return $preValue;
  649.         }
  650.     }
  651.     $data $this->hb;
  652.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("hb")->isEmpty($data)) {
  653.         try {
  654.             return $this->getValueFromParent("hb");
  655.         } catch (InheritanceParentNotFoundException $e) {
  656.             // no data from parent available, continue ...
  657.         }
  658.     }
  659.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  660.         return $data->getPlain();
  661.     }
  662.     return $data;
  663. }
  664. /**
  665. * Set hb - Hb
  666. * @param float|null $hb
  667. * @return \Pimcore\Model\DataObject\Product
  668. */
  669. public function setHb(?float $hb)
  670. {
  671.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  672.     $fd $this->getClass()->getFieldDefinition("hb");
  673.     $this->hb $fd->preSetData($this$hb);
  674.     return $this;
  675. }
  676. /**
  677. * Get hs - Hs
  678. * @return float|null
  679. */
  680. public function getHs(): ?float
  681. {
  682.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  683.         $preValue $this->preGetValue("hs");
  684.         if ($preValue !== null) {
  685.             return $preValue;
  686.         }
  687.     }
  688.     $data $this->hs;
  689.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("hs")->isEmpty($data)) {
  690.         try {
  691.             return $this->getValueFromParent("hs");
  692.         } catch (InheritanceParentNotFoundException $e) {
  693.             // no data from parent available, continue ...
  694.         }
  695.     }
  696.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  697.         return $data->getPlain();
  698.     }
  699.     return $data;
  700. }
  701. /**
  702. * Set hs - Hs
  703. * @param float|null $hs
  704. * @return \Pimcore\Model\DataObject\Product
  705. */
  706. public function setHs(?float $hs)
  707. {
  708.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  709.     $fd $this->getClass()->getFieldDefinition("hs");
  710.     $this->hs $fd->preSetData($this$hs);
  711.     return $this;
  712. }
  713. /**
  714. * Get profondita - Profondita
  715. * @return float|null
  716. */
  717. public function getProfondita(): ?float
  718. {
  719.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  720.         $preValue $this->preGetValue("profondita");
  721.         if ($preValue !== null) {
  722.             return $preValue;
  723.         }
  724.     }
  725.     $data $this->profondita;
  726.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("profondita")->isEmpty($data)) {
  727.         try {
  728.             return $this->getValueFromParent("profondita");
  729.         } catch (InheritanceParentNotFoundException $e) {
  730.             // no data from parent available, continue ...
  731.         }
  732.     }
  733.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  734.         return $data->getPlain();
  735.     }
  736.     return $data;
  737. }
  738. /**
  739. * Set profondita - Profondita
  740. * @param float|null $profondita
  741. * @return \Pimcore\Model\DataObject\Product
  742. */
  743. public function setProfondita(?float $profondita)
  744. {
  745.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  746.     $fd $this->getClass()->getFieldDefinition("profondita");
  747.     $this->profondita $fd->preSetData($this$profondita);
  748.     return $this;
  749. }
  750. /**
  751. * Get lunghezza - Lunghezza
  752. * @return float|null
  753. */
  754. public function getLunghezza(): ?float
  755. {
  756.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  757.         $preValue $this->preGetValue("lunghezza");
  758.         if ($preValue !== null) {
  759.             return $preValue;
  760.         }
  761.     }
  762.     $data $this->lunghezza;
  763.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("lunghezza")->isEmpty($data)) {
  764.         try {
  765.             return $this->getValueFromParent("lunghezza");
  766.         } catch (InheritanceParentNotFoundException $e) {
  767.             // no data from parent available, continue ...
  768.         }
  769.     }
  770.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  771.         return $data->getPlain();
  772.     }
  773.     return $data;
  774. }
  775. /**
  776. * Set lunghezza - Lunghezza
  777. * @param float|null $lunghezza
  778. * @return \Pimcore\Model\DataObject\Product
  779. */
  780. public function setLunghezza(?float $lunghezza)
  781. {
  782.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  783.     $fd $this->getClass()->getFieldDefinition("lunghezza");
  784.     $this->lunghezza $fd->preSetData($this$lunghezza);
  785.     return $this;
  786. }
  787. /**
  788. * Get altezza - Altezza
  789. * @return float|null
  790. */
  791. public function getAltezza(): ?float
  792. {
  793.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  794.         $preValue $this->preGetValue("altezza");
  795.         if ($preValue !== null) {
  796.             return $preValue;
  797.         }
  798.     }
  799.     $data $this->altezza;
  800.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("altezza")->isEmpty($data)) {
  801.         try {
  802.             return $this->getValueFromParent("altezza");
  803.         } catch (InheritanceParentNotFoundException $e) {
  804.             // no data from parent available, continue ...
  805.         }
  806.     }
  807.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  808.         return $data->getPlain();
  809.     }
  810.     return $data;
  811. }
  812. /**
  813. * Set altezza - Altezza
  814. * @param float|null $altezza
  815. * @return \Pimcore\Model\DataObject\Product
  816. */
  817. public function setAltezza(?float $altezza)
  818. {
  819.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  820.     $fd $this->getClass()->getFieldDefinition("altezza");
  821.     $this->altezza $fd->preSetData($this$altezza);
  822.     return $this;
  823. }
  824. /**
  825. * Get fotoPricipale - Foto Pricipale
  826. * @return \Pimcore\Model\Asset\Image|null
  827. */
  828. public function getFotoPricipale(): ?\Pimcore\Model\Asset\Image
  829. {
  830.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  831.         $preValue $this->preGetValue("fotoPricipale");
  832.         if ($preValue !== null) {
  833.             return $preValue;
  834.         }
  835.     }
  836.     $data $this->fotoPricipale;
  837.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("fotoPricipale")->isEmpty($data)) {
  838.         try {
  839.             return $this->getValueFromParent("fotoPricipale");
  840.         } catch (InheritanceParentNotFoundException $e) {
  841.             // no data from parent available, continue ...
  842.         }
  843.     }
  844.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  845.         return $data->getPlain();
  846.     }
  847.     return $data;
  848. }
  849. /**
  850. * Set fotoPricipale - Foto Pricipale
  851. * @param \Pimcore\Model\Asset\Image|null $fotoPricipale
  852. * @return \Pimcore\Model\DataObject\Product
  853. */
  854. public function setFotoPricipale(?\Pimcore\Model\Asset\Image $fotoPricipale)
  855. {
  856.     $this->fotoPricipale $fotoPricipale;
  857.     return $this;
  858. }
  859. /**
  860. * Get foto2 - Foto2
  861. * @return \Pimcore\Model\Asset\Image|null
  862. */
  863. public function getFoto2(): ?\Pimcore\Model\Asset\Image
  864. {
  865.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  866.         $preValue $this->preGetValue("foto2");
  867.         if ($preValue !== null) {
  868.             return $preValue;
  869.         }
  870.     }
  871.     $data $this->foto2;
  872.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("foto2")->isEmpty($data)) {
  873.         try {
  874.             return $this->getValueFromParent("foto2");
  875.         } catch (InheritanceParentNotFoundException $e) {
  876.             // no data from parent available, continue ...
  877.         }
  878.     }
  879.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  880.         return $data->getPlain();
  881.     }
  882.     return $data;
  883. }
  884. /**
  885. * Set foto2 - Foto2
  886. * @param \Pimcore\Model\Asset\Image|null $foto2
  887. * @return \Pimcore\Model\DataObject\Product
  888. */
  889. public function setFoto2(?\Pimcore\Model\Asset\Image $foto2)
  890. {
  891.     $this->foto2 $foto2;
  892.     return $this;
  893. }
  894. /**
  895. * Get foto3 - Foto3
  896. * @return \Pimcore\Model\Asset\Image|null
  897. */
  898. public function getFoto3(): ?\Pimcore\Model\Asset\Image
  899. {
  900.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  901.         $preValue $this->preGetValue("foto3");
  902.         if ($preValue !== null) {
  903.             return $preValue;
  904.         }
  905.     }
  906.     $data $this->foto3;
  907.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("foto3")->isEmpty($data)) {
  908.         try {
  909.             return $this->getValueFromParent("foto3");
  910.         } catch (InheritanceParentNotFoundException $e) {
  911.             // no data from parent available, continue ...
  912.         }
  913.     }
  914.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  915.         return $data->getPlain();
  916.     }
  917.     return $data;
  918. }
  919. /**
  920. * Set foto3 - Foto3
  921. * @param \Pimcore\Model\Asset\Image|null $foto3
  922. * @return \Pimcore\Model\DataObject\Product
  923. */
  924. public function setFoto3(?\Pimcore\Model\Asset\Image $foto3)
  925. {
  926.     $this->foto3 $foto3;
  927.     return $this;
  928. }
  929. /**
  930. * Get foto4 - Foto4
  931. * @return \Pimcore\Model\Asset\Image|null
  932. */
  933. public function getFoto4(): ?\Pimcore\Model\Asset\Image
  934. {
  935.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  936.         $preValue $this->preGetValue("foto4");
  937.         if ($preValue !== null) {
  938.             return $preValue;
  939.         }
  940.     }
  941.     $data $this->foto4;
  942.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("foto4")->isEmpty($data)) {
  943.         try {
  944.             return $this->getValueFromParent("foto4");
  945.         } catch (InheritanceParentNotFoundException $e) {
  946.             // no data from parent available, continue ...
  947.         }
  948.     }
  949.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  950.         return $data->getPlain();
  951.     }
  952.     return $data;
  953. }
  954. /**
  955. * Set foto4 - Foto4
  956. * @param \Pimcore\Model\Asset\Image|null $foto4
  957. * @return \Pimcore\Model\DataObject\Product
  958. */
  959. public function setFoto4(?\Pimcore\Model\Asset\Image $foto4)
  960. {
  961.     $this->foto4 $foto4;
  962.     return $this;
  963. }
  964. /**
  965. * Get categories - Categoria
  966. * @return \Pimcore\Model\DataObject\Category[]
  967. */
  968. public function getCategories(): array
  969. {
  970.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  971.         $preValue $this->preGetValue("categories");
  972.         if ($preValue !== null) {
  973.             return $preValue;
  974.         }
  975.     }
  976.     $data $this->getClass()->getFieldDefinition("categories")->preGetData($this);
  977.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("categories")->isEmpty($data)) {
  978.         try {
  979.             return $this->getValueFromParent("categories");
  980.         } catch (InheritanceParentNotFoundException $e) {
  981.             // no data from parent available, continue ...
  982.         }
  983.     }
  984.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  985.         return $data->getPlain();
  986.     }
  987.     return $data;
  988. }
  989. /**
  990. * Set categories - Categoria
  991. * @param \Pimcore\Model\DataObject\Category[] $categories
  992. * @return \Pimcore\Model\DataObject\Product
  993. */
  994. public function setCategories(?array $categories)
  995. {
  996.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  997.     $fd $this->getClass()->getFieldDefinition("categories");
  998.     $inheritValues self::getGetInheritedValues();
  999.     self::setGetInheritedValues(false);
  1000.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1001.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1002.     $currentData $this->getCategories();
  1003.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1004.     self::setGetInheritedValues($inheritValues);
  1005.     $isEqual $fd->isEqual($currentData$categories);
  1006.     if (!$isEqual) {
  1007.         $this->markFieldDirty("categories"true);
  1008.     }
  1009.     $this->categories $fd->preSetData($this$categories);
  1010.     return $this;
  1011. }
  1012. /**
  1013. * Get famiglia - Famiglia
  1014. * @return \Pimcore\Model\DataObject\Product[]
  1015. */
  1016. public function getFamiglia(): array
  1017. {
  1018.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1019.         $preValue $this->preGetValue("famiglia");
  1020.         if ($preValue !== null) {
  1021.             return $preValue;
  1022.         }
  1023.     }
  1024.     $data $this->getClass()->getFieldDefinition("famiglia")->preGetData($this);
  1025.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("famiglia")->isEmpty($data)) {
  1026.         try {
  1027.             return $this->getValueFromParent("famiglia");
  1028.         } catch (InheritanceParentNotFoundException $e) {
  1029.             // no data from parent available, continue ...
  1030.         }
  1031.     }
  1032.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1033.         return $data->getPlain();
  1034.     }
  1035.     return $data;
  1036. }
  1037. /**
  1038. * Set famiglia - Famiglia
  1039. * @param \Pimcore\Model\DataObject\Product[] $famiglia
  1040. * @return \Pimcore\Model\DataObject\Product
  1041. */
  1042. public function setFamiglia(?array $famiglia)
  1043. {
  1044.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1045.     $fd $this->getClass()->getFieldDefinition("famiglia");
  1046.     $inheritValues self::getGetInheritedValues();
  1047.     self::setGetInheritedValues(false);
  1048.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1049.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1050.     $currentData $this->getFamiglia();
  1051.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1052.     self::setGetInheritedValues($inheritValues);
  1053.     $isEqual $fd->isEqual($currentData$famiglia);
  1054.     if (!$isEqual) {
  1055.         $this->markFieldDirty("famiglia"true);
  1056.     }
  1057.     $this->famiglia $fd->preSetData($this$famiglia);
  1058.     return $this;
  1059. }
  1060. /**
  1061. * Get correlati - Correlati
  1062. * @return \Pimcore\Model\DataObject\AbstractObject[]
  1063. */
  1064. public function getCorrelati(): array
  1065. {
  1066.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1067.         $preValue $this->preGetValue("correlati");
  1068.         if ($preValue !== null) {
  1069.             return $preValue;
  1070.         }
  1071.     }
  1072.     $data $this->getClass()->getFieldDefinition("correlati")->preGetData($this);
  1073.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("correlati")->isEmpty($data)) {
  1074.         try {
  1075.             return $this->getValueFromParent("correlati");
  1076.         } catch (InheritanceParentNotFoundException $e) {
  1077.             // no data from parent available, continue ...
  1078.         }
  1079.     }
  1080.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1081.         return $data->getPlain();
  1082.     }
  1083.     return $data;
  1084. }
  1085. /**
  1086. * Set correlati - Correlati
  1087. * @param \Pimcore\Model\DataObject\AbstractObject[] $correlati
  1088. * @return \Pimcore\Model\DataObject\Product
  1089. */
  1090. public function setCorrelati(?array $correlati)
  1091. {
  1092.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1093.     $fd $this->getClass()->getFieldDefinition("correlati");
  1094.     $inheritValues self::getGetInheritedValues();
  1095.     self::setGetInheritedValues(false);
  1096.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1097.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1098.     $currentData $this->getCorrelati();
  1099.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1100.     self::setGetInheritedValues($inheritValues);
  1101.     $isEqual $fd->isEqual($currentData$correlati);
  1102.     if (!$isEqual) {
  1103.         $this->markFieldDirty("correlati"true);
  1104.     }
  1105.     $this->correlati $fd->preSetData($this$correlati);
  1106.     return $this;
  1107. }
  1108. /**
  1109. * Get tag - Tag
  1110. * @return \Pimcore\Model\DataObject\Tag[]
  1111. */
  1112. public function getTag(): array
  1113. {
  1114.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1115.         $preValue $this->preGetValue("tag");
  1116.         if ($preValue !== null) {
  1117.             return $preValue;
  1118.         }
  1119.     }
  1120.     $data $this->getClass()->getFieldDefinition("tag")->preGetData($this);
  1121.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("tag")->isEmpty($data)) {
  1122.         try {
  1123.             return $this->getValueFromParent("tag");
  1124.         } catch (InheritanceParentNotFoundException $e) {
  1125.             // no data from parent available, continue ...
  1126.         }
  1127.     }
  1128.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1129.         return $data->getPlain();
  1130.     }
  1131.     return $data;
  1132. }
  1133. /**
  1134. * Set tag - Tag
  1135. * @param \Pimcore\Model\DataObject\Tag[] $tag
  1136. * @return \Pimcore\Model\DataObject\Product
  1137. */
  1138. public function setTag(?array $tag)
  1139. {
  1140.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1141.     $fd $this->getClass()->getFieldDefinition("tag");
  1142.     $inheritValues self::getGetInheritedValues();
  1143.     self::setGetInheritedValues(false);
  1144.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1145.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1146.     $currentData $this->getTag();
  1147.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1148.     self::setGetInheritedValues($inheritValues);
  1149.     $isEqual $fd->isEqual($currentData$tag);
  1150.     if (!$isEqual) {
  1151.         $this->markFieldDirty("tag"true);
  1152.     }
  1153.     $this->tag $fd->preSetData($this$tag);
  1154.     return $this;
  1155. }
  1156. /**
  1157. * Get tipologia - Tipologia
  1158. * @return \Pimcore\Model\DataObject\Tipologia[]
  1159. */
  1160. public function getTipologia(): array
  1161. {
  1162.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1163.         $preValue $this->preGetValue("tipologia");
  1164.         if ($preValue !== null) {
  1165.             return $preValue;
  1166.         }
  1167.     }
  1168.     $data $this->getClass()->getFieldDefinition("tipologia")->preGetData($this);
  1169.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("tipologia")->isEmpty($data)) {
  1170.         try {
  1171.             return $this->getValueFromParent("tipologia");
  1172.         } catch (InheritanceParentNotFoundException $e) {
  1173.             // no data from parent available, continue ...
  1174.         }
  1175.     }
  1176.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1177.         return $data->getPlain();
  1178.     }
  1179.     return $data;
  1180. }
  1181. /**
  1182. * Set tipologia - Tipologia
  1183. * @param \Pimcore\Model\DataObject\Tipologia[] $tipologia
  1184. * @return \Pimcore\Model\DataObject\Product
  1185. */
  1186. public function setTipologia(?array $tipologia)
  1187. {
  1188.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1189.     $fd $this->getClass()->getFieldDefinition("tipologia");
  1190.     $inheritValues self::getGetInheritedValues();
  1191.     self::setGetInheritedValues(false);
  1192.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1193.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1194.     $currentData $this->getTipologia();
  1195.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1196.     self::setGetInheritedValues($inheritValues);
  1197.     $isEqual $fd->isEqual($currentData$tipologia);
  1198.     if (!$isEqual) {
  1199.         $this->markFieldDirty("tipologia"true);
  1200.     }
  1201.     $this->tipologia $fd->preSetData($this$tipologia);
  1202.     return $this;
  1203. }
  1204. /**
  1205. * Get stile - Stile
  1206. * @return \Pimcore\Model\DataObject\Stile[]
  1207. */
  1208. public function getStile(): array
  1209. {
  1210.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1211.         $preValue $this->preGetValue("stile");
  1212.         if ($preValue !== null) {
  1213.             return $preValue;
  1214.         }
  1215.     }
  1216.     $data $this->getClass()->getFieldDefinition("stile")->preGetData($this);
  1217.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("stile")->isEmpty($data)) {
  1218.         try {
  1219.             return $this->getValueFromParent("stile");
  1220.         } catch (InheritanceParentNotFoundException $e) {
  1221.             // no data from parent available, continue ...
  1222.         }
  1223.     }
  1224.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1225.         return $data->getPlain();
  1226.     }
  1227.     return $data;
  1228. }
  1229. /**
  1230. * Set stile - Stile
  1231. * @param \Pimcore\Model\DataObject\Stile[] $stile
  1232. * @return \Pimcore\Model\DataObject\Product
  1233. */
  1234. public function setStile(?array $stile)
  1235. {
  1236.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1237.     $fd $this->getClass()->getFieldDefinition("stile");
  1238.     $inheritValues self::getGetInheritedValues();
  1239.     self::setGetInheritedValues(false);
  1240.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1241.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1242.     $currentData $this->getStile();
  1243.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1244.     self::setGetInheritedValues($inheritValues);
  1245.     $isEqual $fd->isEqual($currentData$stile);
  1246.     if (!$isEqual) {
  1247.         $this->markFieldDirty("stile"true);
  1248.     }
  1249.     $this->stile $fd->preSetData($this$stile);
  1250.     return $this;
  1251. }
  1252. /**
  1253. * Get materialeStruttura - Materiale Struttura
  1254. * @return \Pimcore\Model\DataObject\AbstractObject[]
  1255. */
  1256. public function getMaterialeStruttura(): array
  1257. {
  1258.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1259.         $preValue $this->preGetValue("materialeStruttura");
  1260.         if ($preValue !== null) {
  1261.             return $preValue;
  1262.         }
  1263.     }
  1264.     $data $this->getClass()->getFieldDefinition("materialeStruttura")->preGetData($this);
  1265.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("materialeStruttura")->isEmpty($data)) {
  1266.         try {
  1267.             return $this->getValueFromParent("materialeStruttura");
  1268.         } catch (InheritanceParentNotFoundException $e) {
  1269.             // no data from parent available, continue ...
  1270.         }
  1271.     }
  1272.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1273.         return $data->getPlain();
  1274.     }
  1275.     return $data;
  1276. }
  1277. /**
  1278. * Set materialeStruttura - Materiale Struttura
  1279. * @param \Pimcore\Model\DataObject\AbstractObject[] $materialeStruttura
  1280. * @return \Pimcore\Model\DataObject\Product
  1281. */
  1282. public function setMaterialeStruttura(?array $materialeStruttura)
  1283. {
  1284.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1285.     $fd $this->getClass()->getFieldDefinition("materialeStruttura");
  1286.     $inheritValues self::getGetInheritedValues();
  1287.     self::setGetInheritedValues(false);
  1288.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1289.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1290.     $currentData $this->getMaterialeStruttura();
  1291.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1292.     self::setGetInheritedValues($inheritValues);
  1293.     $isEqual $fd->isEqual($currentData$materialeStruttura);
  1294.     if (!$isEqual) {
  1295.         $this->markFieldDirty("materialeStruttura"true);
  1296.     }
  1297.     $this->materialeStruttura $fd->preSetData($this$materialeStruttura);
  1298.     return $this;
  1299. }
  1300. /**
  1301. * Get specifiche - Specifiche
  1302. * @return \Pimcore\Model\DataObject\AbstractObject[]
  1303. */
  1304. public function getSpecifiche(): array
  1305. {
  1306.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1307.         $preValue $this->preGetValue("specifiche");
  1308.         if ($preValue !== null) {
  1309.             return $preValue;
  1310.         }
  1311.     }
  1312.     $data $this->getClass()->getFieldDefinition("specifiche")->preGetData($this);
  1313.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("specifiche")->isEmpty($data)) {
  1314.         try {
  1315.             return $this->getValueFromParent("specifiche");
  1316.         } catch (InheritanceParentNotFoundException $e) {
  1317.             // no data from parent available, continue ...
  1318.         }
  1319.     }
  1320.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1321.         return $data->getPlain();
  1322.     }
  1323.     return $data;
  1324. }
  1325. /**
  1326. * Set specifiche - Specifiche
  1327. * @param \Pimcore\Model\DataObject\AbstractObject[] $specifiche
  1328. * @return \Pimcore\Model\DataObject\Product
  1329. */
  1330. public function setSpecifiche(?array $specifiche)
  1331. {
  1332.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1333.     $fd $this->getClass()->getFieldDefinition("specifiche");
  1334.     $inheritValues self::getGetInheritedValues();
  1335.     self::setGetInheritedValues(false);
  1336.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1337.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1338.     $currentData $this->getSpecifiche();
  1339.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1340.     self::setGetInheritedValues($inheritValues);
  1341.     $isEqual $fd->isEqual($currentData$specifiche);
  1342.     if (!$isEqual) {
  1343.         $this->markFieldDirty("specifiche"true);
  1344.     }
  1345.     $this->specifiche $fd->preSetData($this$specifiche);
  1346.     return $this;
  1347. }
  1348. /**
  1349. * Get utilizzo - Utilizzo
  1350. * @return \Pimcore\Model\DataObject\AbstractObject[]
  1351. */
  1352. public function getUtilizzo(): array
  1353. {
  1354.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1355.         $preValue $this->preGetValue("utilizzo");
  1356.         if ($preValue !== null) {
  1357.             return $preValue;
  1358.         }
  1359.     }
  1360.     $data $this->getClass()->getFieldDefinition("utilizzo")->preGetData($this);
  1361.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("utilizzo")->isEmpty($data)) {
  1362.         try {
  1363.             return $this->getValueFromParent("utilizzo");
  1364.         } catch (InheritanceParentNotFoundException $e) {
  1365.             // no data from parent available, continue ...
  1366.         }
  1367.     }
  1368.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1369.         return $data->getPlain();
  1370.     }
  1371.     return $data;
  1372. }
  1373. /**
  1374. * Set utilizzo - Utilizzo
  1375. * @param \Pimcore\Model\DataObject\AbstractObject[] $utilizzo
  1376. * @return \Pimcore\Model\DataObject\Product
  1377. */
  1378. public function setUtilizzo(?array $utilizzo)
  1379. {
  1380.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1381.     $fd $this->getClass()->getFieldDefinition("utilizzo");
  1382.     $inheritValues self::getGetInheritedValues();
  1383.     self::setGetInheritedValues(false);
  1384.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1385.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1386.     $currentData $this->getUtilizzo();
  1387.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1388.     self::setGetInheritedValues($inheritValues);
  1389.     $isEqual $fd->isEqual($currentData$utilizzo);
  1390.     if (!$isEqual) {
  1391.         $this->markFieldDirty("utilizzo"true);
  1392.     }
  1393.     $this->utilizzo $fd->preSetData($this$utilizzo);
  1394.     return $this;
  1395. }
  1396. /**
  1397. * Get contract - Contract
  1398. * @return \Pimcore\Model\DataObject\AbstractObject[]
  1399. */
  1400. public function getContract(): array
  1401. {
  1402.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1403.         $preValue $this->preGetValue("contract");
  1404.         if ($preValue !== null) {
  1405.             return $preValue;
  1406.         }
  1407.     }
  1408.     $data $this->getClass()->getFieldDefinition("contract")->preGetData($this);
  1409.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("contract")->isEmpty($data)) {
  1410.         try {
  1411.             return $this->getValueFromParent("contract");
  1412.         } catch (InheritanceParentNotFoundException $e) {
  1413.             // no data from parent available, continue ...
  1414.         }
  1415.     }
  1416.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1417.         return $data->getPlain();
  1418.     }
  1419.     return $data;
  1420. }
  1421. /**
  1422. * Set contract - Contract
  1423. * @param \Pimcore\Model\DataObject\AbstractObject[] $contract
  1424. * @return \Pimcore\Model\DataObject\Product
  1425. */
  1426. public function setContract(?array $contract)
  1427. {
  1428.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1429.     $fd $this->getClass()->getFieldDefinition("contract");
  1430.     $inheritValues self::getGetInheritedValues();
  1431.     self::setGetInheritedValues(false);
  1432.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1433.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1434.     $currentData $this->getContract();
  1435.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1436.     self::setGetInheritedValues($inheritValues);
  1437.     $isEqual $fd->isEqual($currentData$contract);
  1438.     if (!$isEqual) {
  1439.         $this->markFieldDirty("contract"true);
  1440.     }
  1441.     $this->contract $fd->preSetData($this$contract);
  1442.     return $this;
  1443. }
  1444. /**
  1445. * Get rivestimenti - Rivestimenti
  1446. * @return \Pimcore\Model\DataObject\RivestimentiCategory[]
  1447. */
  1448. public function getRivestimenti(): array
  1449. {
  1450.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1451.         $preValue $this->preGetValue("rivestimenti");
  1452.         if ($preValue !== null) {
  1453.             return $preValue;
  1454.         }
  1455.     }
  1456.     $data $this->getClass()->getFieldDefinition("rivestimenti")->preGetData($this);
  1457.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("rivestimenti")->isEmpty($data)) {
  1458.         try {
  1459.             return $this->getValueFromParent("rivestimenti");
  1460.         } catch (InheritanceParentNotFoundException $e) {
  1461.             // no data from parent available, continue ...
  1462.         }
  1463.     }
  1464.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1465.         return $data->getPlain();
  1466.     }
  1467.     return $data;
  1468. }
  1469. /**
  1470. * Set rivestimenti - Rivestimenti
  1471. * @param \Pimcore\Model\DataObject\RivestimentiCategory[] $rivestimenti
  1472. * @return \Pimcore\Model\DataObject\Product
  1473. */
  1474. public function setRivestimenti(?array $rivestimenti)
  1475. {
  1476.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1477.     $fd $this->getClass()->getFieldDefinition("rivestimenti");
  1478.     $inheritValues self::getGetInheritedValues();
  1479.     self::setGetInheritedValues(false);
  1480.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1481.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1482.     $currentData $this->getRivestimenti();
  1483.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1484.     self::setGetInheritedValues($inheritValues);
  1485.     $isEqual $fd->isEqual($currentData$rivestimenti);
  1486.     if (!$isEqual) {
  1487.         $this->markFieldDirty("rivestimenti"true);
  1488.     }
  1489.     $this->rivestimenti $fd->preSetData($this$rivestimenti);
  1490.     return $this;
  1491. }
  1492. /**
  1493. * Get finiture - Finiture
  1494. * @return \Pimcore\Model\DataObject\FinitureTipologie[]
  1495. */
  1496. public function getFiniture(): array
  1497. {
  1498.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1499.         $preValue $this->preGetValue("finiture");
  1500.         if ($preValue !== null) {
  1501.             return $preValue;
  1502.         }
  1503.     }
  1504.     $data $this->getClass()->getFieldDefinition("finiture")->preGetData($this);
  1505.     if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("finiture")->isEmpty($data)) {
  1506.         try {
  1507.             return $this->getValueFromParent("finiture");
  1508.         } catch (InheritanceParentNotFoundException $e) {
  1509.             // no data from parent available, continue ...
  1510.         }
  1511.     }
  1512.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1513.         return $data->getPlain();
  1514.     }
  1515.     return $data;
  1516. }
  1517. /**
  1518. * Set finiture - Finiture
  1519. * @param \Pimcore\Model\DataObject\FinitureTipologie[] $finiture
  1520. * @return \Pimcore\Model\DataObject\Product
  1521. */
  1522. public function setFiniture(?array $finiture)
  1523. {
  1524.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1525.     $fd $this->getClass()->getFieldDefinition("finiture");
  1526.     $inheritValues self::getGetInheritedValues();
  1527.     self::setGetInheritedValues(false);
  1528.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1529.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1530.     $currentData $this->getFiniture();
  1531.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1532.     self::setGetInheritedValues($inheritValues);
  1533.     $isEqual $fd->isEqual($currentData$finiture);
  1534.     if (!$isEqual) {
  1535.         $this->markFieldDirty("finiture"true);
  1536.     }
  1537.     $this->finiture $fd->preSetData($this$finiture);
  1538.     return $this;
  1539. }
  1540. /**
  1541. * @return \Pimcore\Model\DataObject\Product\Varianti
  1542. */
  1543. public function getVarianti(): ?\Pimcore\Model\DataObject\Objectbrick
  1544. {
  1545.     $data $this->varianti;
  1546.     if (!$data) {
  1547.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\Varianti")) {
  1548.             $data = new \Pimcore\Model\DataObject\Product\Varianti($this"varianti");
  1549.             $this->varianti $data;
  1550.         } else {
  1551.             return null;
  1552.         }
  1553.     }
  1554.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1555.         $preValue $this->preGetValue("varianti");
  1556.         if ($preValue !== null) {
  1557.             return $preValue;
  1558.         }
  1559.     }
  1560.     return $data;
  1561. }
  1562. /**
  1563. * Set varianti - Varianti
  1564. * @param \Pimcore\Model\DataObject\Objectbrick|null $varianti
  1565. * @return \Pimcore\Model\DataObject\Product
  1566. */
  1567. public function setVarianti(?\Pimcore\Model\DataObject\Objectbrick $varianti)
  1568. {
  1569.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1570.     $fd $this->getClass()->getFieldDefinition("varianti");
  1571.     $this->varianti $fd->preSetData($this$varianti);
  1572.     return $this;
  1573. }
  1574. /**
  1575. * @return \Pimcore\Model\DataObject\Product\VariantiFrassino
  1576. */
  1577. public function getVariantiFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
  1578. {
  1579.     $data $this->variantiFrassino;
  1580.     if (!$data) {
  1581.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\VariantiFrassino")) {
  1582.             $data = new \Pimcore\Model\DataObject\Product\VariantiFrassino($this"variantiFrassino");
  1583.             $this->variantiFrassino $data;
  1584.         } else {
  1585.             return null;
  1586.         }
  1587.     }
  1588.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1589.         $preValue $this->preGetValue("variantiFrassino");
  1590.         if ($preValue !== null) {
  1591.             return $preValue;
  1592.         }
  1593.     }
  1594.     return $data;
  1595. }
  1596. /**
  1597. * Set variantiFrassino - Varianti Frassino
  1598. * @param \Pimcore\Model\DataObject\Objectbrick|null $variantiFrassino
  1599. * @return \Pimcore\Model\DataObject\Product
  1600. */
  1601. public function setVariantiFrassino(?\Pimcore\Model\DataObject\Objectbrick $variantiFrassino)
  1602. {
  1603.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1604.     $fd $this->getClass()->getFieldDefinition("variantiFrassino");
  1605.     $this->variantiFrassino $fd->preSetData($this$variantiFrassino);
  1606.     return $this;
  1607. }
  1608. /**
  1609. * @return \Pimcore\Model\DataObject\Product\FustoGrezzo
  1610. */
  1611. public function getFustoGrezzo(): ?\Pimcore\Model\DataObject\Objectbrick
  1612. {
  1613.     $data $this->fustoGrezzo;
  1614.     if (!$data) {
  1615.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\FustoGrezzo")) {
  1616.             $data = new \Pimcore\Model\DataObject\Product\FustoGrezzo($this"fustoGrezzo");
  1617.             $this->fustoGrezzo $data;
  1618.         } else {
  1619.             return null;
  1620.         }
  1621.     }
  1622.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1623.         $preValue $this->preGetValue("fustoGrezzo");
  1624.         if ($preValue !== null) {
  1625.             return $preValue;
  1626.         }
  1627.     }
  1628.     return $data;
  1629. }
  1630. /**
  1631. * Set fustoGrezzo - Fusto grezzo
  1632. * @param \Pimcore\Model\DataObject\Objectbrick|null $fustoGrezzo
  1633. * @return \Pimcore\Model\DataObject\Product
  1634. */
  1635. public function setFustoGrezzo(?\Pimcore\Model\DataObject\Objectbrick $fustoGrezzo)
  1636. {
  1637.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1638.     $fd $this->getClass()->getFieldDefinition("fustoGrezzo");
  1639.     $this->fustoGrezzo $fd->preSetData($this$fustoGrezzo);
  1640.     return $this;
  1641. }
  1642. /**
  1643. * @return \Pimcore\Model\DataObject\Product\FustoGrezzoFrassino
  1644. */
  1645. public function getFustoGrezzoFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
  1646. {
  1647.     $data $this->fustoGrezzoFrassino;
  1648.     if (!$data) {
  1649.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\FustoGrezzoFrassino")) {
  1650.             $data = new \Pimcore\Model\DataObject\Product\FustoGrezzoFrassino($this"fustoGrezzoFrassino");
  1651.             $this->fustoGrezzoFrassino $data;
  1652.         } else {
  1653.             return null;
  1654.         }
  1655.     }
  1656.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1657.         $preValue $this->preGetValue("fustoGrezzoFrassino");
  1658.         if ($preValue !== null) {
  1659.             return $preValue;
  1660.         }
  1661.     }
  1662.     return $data;
  1663. }
  1664. /**
  1665. * Set fustoGrezzoFrassino - Fusto Grezzo Frassino
  1666. * @param \Pimcore\Model\DataObject\Objectbrick|null $fustoGrezzoFrassino
  1667. * @return \Pimcore\Model\DataObject\Product
  1668. */
  1669. public function setFustoGrezzoFrassino(?\Pimcore\Model\DataObject\Objectbrick $fustoGrezzoFrassino)
  1670. {
  1671.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1672.     $fd $this->getClass()->getFieldDefinition("fustoGrezzoFrassino");
  1673.     $this->fustoGrezzoFrassino $fd->preSetData($this$fustoGrezzoFrassino);
  1674.     return $this;
  1675. }
  1676. /**
  1677. * @return \Pimcore\Model\DataObject\Product\PannelliGommeTappezzeria
  1678. */
  1679. public function getPannelliGommeTappezzeria(): ?\Pimcore\Model\DataObject\Objectbrick
  1680. {
  1681.     $data $this->pannelliGommeTappezzeria;
  1682.     if (!$data) {
  1683.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\PannelliGommeTappezzeria")) {
  1684.             $data = new \Pimcore\Model\DataObject\Product\PannelliGommeTappezzeria($this"pannelliGommeTappezzeria");
  1685.             $this->pannelliGommeTappezzeria $data;
  1686.         } else {
  1687.             return null;
  1688.         }
  1689.     }
  1690.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1691.         $preValue $this->preGetValue("pannelliGommeTappezzeria");
  1692.         if ($preValue !== null) {
  1693.             return $preValue;
  1694.         }
  1695.     }
  1696.     return $data;
  1697. }
  1698. /**
  1699. * Set pannelliGommeTappezzeria - Pannelli, gomme e materiali tappezzeria
  1700. * @param \Pimcore\Model\DataObject\Objectbrick|null $pannelliGommeTappezzeria
  1701. * @return \Pimcore\Model\DataObject\Product
  1702. */
  1703. public function setPannelliGommeTappezzeria(?\Pimcore\Model\DataObject\Objectbrick $pannelliGommeTappezzeria)
  1704. {
  1705.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1706.     $fd $this->getClass()->getFieldDefinition("pannelliGommeTappezzeria");
  1707.     $this->pannelliGommeTappezzeria $fd->preSetData($this$pannelliGommeTappezzeria);
  1708.     return $this;
  1709. }
  1710. /**
  1711. * @return \Pimcore\Model\DataObject\Product\MaterialeImballo
  1712. */
  1713. public function getMaterialeImballo(): ?\Pimcore\Model\DataObject\Objectbrick
  1714. {
  1715.     $data $this->materialeImballo;
  1716.     if (!$data) {
  1717.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\MaterialeImballo")) {
  1718.             $data = new \Pimcore\Model\DataObject\Product\MaterialeImballo($this"materialeImballo");
  1719.             $this->materialeImballo $data;
  1720.         } else {
  1721.             return null;
  1722.         }
  1723.     }
  1724.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1725.         $preValue $this->preGetValue("materialeImballo");
  1726.         if ($preValue !== null) {
  1727.             return $preValue;
  1728.         }
  1729.     }
  1730.     return $data;
  1731. }
  1732. /**
  1733. * Set materialeImballo - Materiale imballo e varie
  1734. * @param \Pimcore\Model\DataObject\Objectbrick|null $materialeImballo
  1735. * @return \Pimcore\Model\DataObject\Product
  1736. */
  1737. public function setMaterialeImballo(?\Pimcore\Model\DataObject\Objectbrick $materialeImballo)
  1738. {
  1739.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1740.     $fd $this->getClass()->getFieldDefinition("materialeImballo");
  1741.     $this->materialeImballo $fd->preSetData($this$materialeImballo);
  1742.     return $this;
  1743. }
  1744. /**
  1745. * @return \Pimcore\Model\DataObject\Product\ComponentiLegno
  1746. */
  1747. public function getComponentiLegno(): ?\Pimcore\Model\DataObject\Objectbrick
  1748. {
  1749.     $data $this->componentiLegno;
  1750.     if (!$data) {
  1751.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ComponentiLegno")) {
  1752.             $data = new \Pimcore\Model\DataObject\Product\ComponentiLegno($this"componentiLegno");
  1753.             $this->componentiLegno $data;
  1754.         } else {
  1755.             return null;
  1756.         }
  1757.     }
  1758.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1759.         $preValue $this->preGetValue("componentiLegno");
  1760.         if ($preValue !== null) {
  1761.             return $preValue;
  1762.         }
  1763.     }
  1764.     return $data;
  1765. }
  1766. /**
  1767. * Set componentiLegno - Componenti legno per verniciare
  1768. * @param \Pimcore\Model\DataObject\Objectbrick|null $componentiLegno
  1769. * @return \Pimcore\Model\DataObject\Product
  1770. */
  1771. public function setComponentiLegno(?\Pimcore\Model\DataObject\Objectbrick $componentiLegno)
  1772. {
  1773.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1774.     $fd $this->getClass()->getFieldDefinition("componentiLegno");
  1775.     $this->componentiLegno $fd->preSetData($this$componentiLegno);
  1776.     return $this;
  1777. }
  1778. /**
  1779. * @return \Pimcore\Model\DataObject\Product\ComponentiLegnoFrassino
  1780. */
  1781. public function getComponentiLegnoFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
  1782. {
  1783.     $data $this->componentiLegnoFrassino;
  1784.     if (!$data) {
  1785.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ComponentiLegnoFrassino")) {
  1786.             $data = new \Pimcore\Model\DataObject\Product\ComponentiLegnoFrassino($this"componentiLegnoFrassino");
  1787.             $this->componentiLegnoFrassino $data;
  1788.         } else {
  1789.             return null;
  1790.         }
  1791.     }
  1792.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1793.         $preValue $this->preGetValue("componentiLegnoFrassino");
  1794.         if ($preValue !== null) {
  1795.             return $preValue;
  1796.         }
  1797.     }
  1798.     return $data;
  1799. }
  1800. /**
  1801. * Set componentiLegnoFrassino - Componenti Legno Frassino
  1802. * @param \Pimcore\Model\DataObject\Objectbrick|null $componentiLegnoFrassino
  1803. * @return \Pimcore\Model\DataObject\Product
  1804. */
  1805. public function setComponentiLegnoFrassino(?\Pimcore\Model\DataObject\Objectbrick $componentiLegnoFrassino)
  1806. {
  1807.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1808.     $fd $this->getClass()->getFieldDefinition("componentiLegnoFrassino");
  1809.     $this->componentiLegnoFrassino $fd->preSetData($this$componentiLegnoFrassino);
  1810.     return $this;
  1811. }
  1812. /**
  1813. * @return \Pimcore\Model\DataObject\Product\ComponentiPaglia
  1814. */
  1815. public function getComponentiPaglia(): ?\Pimcore\Model\DataObject\Objectbrick
  1816. {
  1817.     $data $this->componentiPaglia;
  1818.     if (!$data) {
  1819.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ComponentiPaglia")) {
  1820.             $data = new \Pimcore\Model\DataObject\Product\ComponentiPaglia($this"componentiPaglia");
  1821.             $this->componentiPaglia $data;
  1822.         } else {
  1823.             return null;
  1824.         }
  1825.     }
  1826.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1827.         $preValue $this->preGetValue("componentiPaglia");
  1828.         if ($preValue !== null) {
  1829.             return $preValue;
  1830.         }
  1831.     }
  1832.     return $data;
  1833. }
  1834. /**
  1835. * Set componentiPaglia - Componenti paglia
  1836. * @param \Pimcore\Model\DataObject\Objectbrick|null $componentiPaglia
  1837. * @return \Pimcore\Model\DataObject\Product
  1838. */
  1839. public function setComponentiPaglia(?\Pimcore\Model\DataObject\Objectbrick $componentiPaglia)
  1840. {
  1841.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1842.     $fd $this->getClass()->getFieldDefinition("componentiPaglia");
  1843.     $this->componentiPaglia $fd->preSetData($this$componentiPaglia);
  1844.     return $this;
  1845. }
  1846. /**
  1847. * @return \Pimcore\Model\DataObject\Product\TipiDiVerniciatura
  1848. */
  1849. public function getTipiDiVerniciatura(): ?\Pimcore\Model\DataObject\Objectbrick
  1850. {
  1851.     $data $this->tipiDiVerniciatura;
  1852.     if (!$data) {
  1853.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TipiDiVerniciatura")) {
  1854.             $data = new \Pimcore\Model\DataObject\Product\TipiDiVerniciatura($this"tipiDiVerniciatura");
  1855.             $this->tipiDiVerniciatura $data;
  1856.         } else {
  1857.             return null;
  1858.         }
  1859.     }
  1860.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1861.         $preValue $this->preGetValue("tipiDiVerniciatura");
  1862.         if ($preValue !== null) {
  1863.             return $preValue;
  1864.         }
  1865.     }
  1866.     return $data;
  1867. }
  1868. /**
  1869. * Set tipiDiVerniciatura - Tipi di verniciatura
  1870. * @param \Pimcore\Model\DataObject\Objectbrick|null $tipiDiVerniciatura
  1871. * @return \Pimcore\Model\DataObject\Product
  1872. */
  1873. public function setTipiDiVerniciatura(?\Pimcore\Model\DataObject\Objectbrick $tipiDiVerniciatura)
  1874. {
  1875.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1876.     $fd $this->getClass()->getFieldDefinition("tipiDiVerniciatura");
  1877.     $this->tipiDiVerniciatura $fd->preSetData($this$tipiDiVerniciatura);
  1878.     return $this;
  1879. }
  1880. /**
  1881. * @return \Pimcore\Model\DataObject\Product\TipiDiVerniciaturaFrassino
  1882. */
  1883. public function getTipiDiVerniciaturaFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
  1884. {
  1885.     $data $this->tipiDiVerniciaturaFrassino;
  1886.     if (!$data) {
  1887.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TipiDiVerniciaturaFrassino")) {
  1888.             $data = new \Pimcore\Model\DataObject\Product\TipiDiVerniciaturaFrassino($this"tipiDiVerniciaturaFrassino");
  1889.             $this->tipiDiVerniciaturaFrassino $data;
  1890.         } else {
  1891.             return null;
  1892.         }
  1893.     }
  1894.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1895.         $preValue $this->preGetValue("tipiDiVerniciaturaFrassino");
  1896.         if ($preValue !== null) {
  1897.             return $preValue;
  1898.         }
  1899.     }
  1900.     return $data;
  1901. }
  1902. /**
  1903. * Set tipiDiVerniciaturaFrassino - Tipi Di Verniciatura Frassino
  1904. * @param \Pimcore\Model\DataObject\Objectbrick|null $tipiDiVerniciaturaFrassino
  1905. * @return \Pimcore\Model\DataObject\Product
  1906. */
  1907. public function setTipiDiVerniciaturaFrassino(?\Pimcore\Model\DataObject\Objectbrick $tipiDiVerniciaturaFrassino)
  1908. {
  1909.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1910.     $fd $this->getClass()->getFieldDefinition("tipiDiVerniciaturaFrassino");
  1911.     $this->tipiDiVerniciaturaFrassino $fd->preSetData($this$tipiDiVerniciaturaFrassino);
  1912.     return $this;
  1913. }
  1914. /**
  1915. * @return \Pimcore\Model\DataObject\Product\TappezzeriaStoffa
  1916. */
  1917. public function getTappezzeriaStoffa(): ?\Pimcore\Model\DataObject\Objectbrick
  1918. {
  1919.     $data $this->tappezzeriaStoffa;
  1920.     if (!$data) {
  1921.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TappezzeriaStoffa")) {
  1922.             $data = new \Pimcore\Model\DataObject\Product\TappezzeriaStoffa($this"tappezzeriaStoffa");
  1923.             $this->tappezzeriaStoffa $data;
  1924.         } else {
  1925.             return null;
  1926.         }
  1927.     }
  1928.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1929.         $preValue $this->preGetValue("tappezzeriaStoffa");
  1930.         if ($preValue !== null) {
  1931.             return $preValue;
  1932.         }
  1933.     }
  1934.     return $data;
  1935. }
  1936. /**
  1937. * Set tappezzeriaStoffa - Tappezzeria stoffa
  1938. * @param \Pimcore\Model\DataObject\Objectbrick|null $tappezzeriaStoffa
  1939. * @return \Pimcore\Model\DataObject\Product
  1940. */
  1941. public function setTappezzeriaStoffa(?\Pimcore\Model\DataObject\Objectbrick $tappezzeriaStoffa)
  1942. {
  1943.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1944.     $fd $this->getClass()->getFieldDefinition("tappezzeriaStoffa");
  1945.     $this->tappezzeriaStoffa $fd->preSetData($this$tappezzeriaStoffa);
  1946.     return $this;
  1947. }
  1948. /**
  1949. * @return \Pimcore\Model\DataObject\Product\TappezzeriaPelle
  1950. */
  1951. public function getTappezzeriaPelle(): ?\Pimcore\Model\DataObject\Objectbrick
  1952. {
  1953.     $data $this->tappezzeriaPelle;
  1954.     if (!$data) {
  1955.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TappezzeriaPelle")) {
  1956.             $data = new \Pimcore\Model\DataObject\Product\TappezzeriaPelle($this"tappezzeriaPelle");
  1957.             $this->tappezzeriaPelle $data;
  1958.         } else {
  1959.             return null;
  1960.         }
  1961.     }
  1962.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1963.         $preValue $this->preGetValue("tappezzeriaPelle");
  1964.         if ($preValue !== null) {
  1965.             return $preValue;
  1966.         }
  1967.     }
  1968.     return $data;
  1969. }
  1970. /**
  1971. * Set tappezzeriaPelle - Tappezzeria pelle
  1972. * @param \Pimcore\Model\DataObject\Objectbrick|null $tappezzeriaPelle
  1973. * @return \Pimcore\Model\DataObject\Product
  1974. */
  1975. public function setTappezzeriaPelle(?\Pimcore\Model\DataObject\Objectbrick $tappezzeriaPelle)
  1976. {
  1977.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1978.     $fd $this->getClass()->getFieldDefinition("tappezzeriaPelle");
  1979.     $this->tappezzeriaPelle $fd->preSetData($this$tappezzeriaPelle);
  1980.     return $this;
  1981. }
  1982. /**
  1983. * @return \Pimcore\Model\DataObject\Product\ImballoSedieFinite
  1984. */
  1985. public function getImballoSedieFinite(): ?\Pimcore\Model\DataObject\Objectbrick
  1986. {
  1987.     $data $this->imballoSedieFinite;
  1988.     if (!$data) {
  1989.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ImballoSedieFinite")) {
  1990.             $data = new \Pimcore\Model\DataObject\Product\ImballoSedieFinite($this"imballoSedieFinite");
  1991.             $this->imballoSedieFinite $data;
  1992.         } else {
  1993.             return null;
  1994.         }
  1995.     }
  1996.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1997.         $preValue $this->preGetValue("imballoSedieFinite");
  1998.         if ($preValue !== null) {
  1999.             return $preValue;
  2000.         }
  2001.     }
  2002.     return $data;
  2003. }
  2004. /**
  2005. * Set imballoSedieFinite - Imballo sedie finite
  2006. * @param \Pimcore\Model\DataObject\Objectbrick|null $imballoSedieFinite
  2007. * @return \Pimcore\Model\DataObject\Product
  2008. */
  2009. public function setImballoSedieFinite(?\Pimcore\Model\DataObject\Objectbrick $imballoSedieFinite)
  2010. {
  2011.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  2012.     $fd $this->getClass()->getFieldDefinition("imballoSedieFinite");
  2013.     $this->imballoSedieFinite $fd->preSetData($this$imballoSedieFinite);
  2014.     return $this;
  2015. }
  2016. /**
  2017. * @return \Pimcore\Model\DataObject\Product\Consumi
  2018. */
  2019. public function getConsumi(): ?\Pimcore\Model\DataObject\Objectbrick
  2020. {
  2021.     $data $this->consumi;
  2022.     if (!$data) {
  2023.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\Consumi")) {
  2024.             $data = new \Pimcore\Model\DataObject\Product\Consumi($this"consumi");
  2025.             $this->consumi $data;
  2026.         } else {
  2027.             return null;
  2028.         }
  2029.     }
  2030.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2031.         $preValue $this->preGetValue("consumi");
  2032.         if ($preValue !== null) {
  2033.             return $preValue;
  2034.         }
  2035.     }
  2036.     return $data;
  2037. }
  2038. /**
  2039. * Set consumi - Consumi
  2040. * @param \Pimcore\Model\DataObject\Objectbrick|null $consumi
  2041. * @return \Pimcore\Model\DataObject\Product
  2042. */
  2043. public function setConsumi(?\Pimcore\Model\DataObject\Objectbrick $consumi)
  2044. {
  2045.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  2046.     $fd $this->getClass()->getFieldDefinition("consumi");
  2047.     $this->consumi $fd->preSetData($this$consumi);
  2048.     return $this;
  2049. }
  2050. /**
  2051. * @return \Pimcore\Model\DataObject\Product\FasceDiSconto
  2052. */
  2053. public function getFasceDiSconto(): ?\Pimcore\Model\DataObject\Objectbrick
  2054. {
  2055.     $data $this->fasceDiSconto;
  2056.     if (!$data) {
  2057.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\FasceDiSconto")) {
  2058.             $data = new \Pimcore\Model\DataObject\Product\FasceDiSconto($this"fasceDiSconto");
  2059.             $this->fasceDiSconto $data;
  2060.         } else {
  2061.             return null;
  2062.         }
  2063.     }
  2064.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2065.         $preValue $this->preGetValue("fasceDiSconto");
  2066.         if ($preValue !== null) {
  2067.             return $preValue;
  2068.         }
  2069.     }
  2070.     return $data;
  2071. }
  2072. /**
  2073. * Set fasceDiSconto - Fasce di sconto/produzione
  2074. * @param \Pimcore\Model\DataObject\Objectbrick|null $fasceDiSconto
  2075. * @return \Pimcore\Model\DataObject\Product
  2076. */
  2077. public function setFasceDiSconto(?\Pimcore\Model\DataObject\Objectbrick $fasceDiSconto)
  2078. {
  2079.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  2080.     $fd $this->getClass()->getFieldDefinition("fasceDiSconto");
  2081.     $this->fasceDiSconto $fd->preSetData($this$fasceDiSconto);
  2082.     return $this;
  2083. }
  2084. /**
  2085. * @return \Pimcore\Model\DataObject\Product\Altro
  2086. */
  2087. public function getAltro(): ?\Pimcore\Model\DataObject\Objectbrick
  2088. {
  2089.     $data $this->altro;
  2090.     if (!$data) {
  2091.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\Altro")) {
  2092.             $data = new \Pimcore\Model\DataObject\Product\Altro($this"altro");
  2093.             $this->altro $data;
  2094.         } else {
  2095.             return null;
  2096.         }
  2097.     }
  2098.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2099.         $preValue $this->preGetValue("altro");
  2100.         if ($preValue !== null) {
  2101.             return $preValue;
  2102.         }
  2103.     }
  2104.     return $data;
  2105. }
  2106. /**
  2107. * Set altro - Altro
  2108. * @param \Pimcore\Model\DataObject\Objectbrick|null $altro
  2109. * @return \Pimcore\Model\DataObject\Product
  2110. */
  2111. public function setAltro(?\Pimcore\Model\DataObject\Objectbrick $altro)
  2112. {
  2113.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  2114.     $fd $this->getClass()->getFieldDefinition("altro");
  2115.     $this->altro $fd->preSetData($this$altro);
  2116.     return $this;
  2117. }
  2118. /**
  2119. * @return \Pimcore\Model\DataObject\Product\AltroFrassino
  2120. */
  2121. public function getAltroFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
  2122. {
  2123.     $data $this->altroFrassino;
  2124.     if (!$data) {
  2125.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\AltroFrassino")) {
  2126.             $data = new \Pimcore\Model\DataObject\Product\AltroFrassino($this"altroFrassino");
  2127.             $this->altroFrassino $data;
  2128.         } else {
  2129.             return null;
  2130.         }
  2131.     }
  2132.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  2133.         $preValue $this->preGetValue("altroFrassino");
  2134.         if ($preValue !== null) {
  2135.             return $preValue;
  2136.         }
  2137.     }
  2138.     return $data;
  2139. }
  2140. /**
  2141. * Set altroFrassino - Altro Frassino
  2142. * @param \Pimcore\Model\DataObject\Objectbrick|null $altroFrassino
  2143. * @return \Pimcore\Model\DataObject\Product
  2144. */
  2145. public function setAltroFrassino(?\Pimcore\Model\DataObject\Objectbrick $altroFrassino)
  2146. {
  2147.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  2148.     $fd $this->getClass()->getFieldDefinition("altroFrassino");
  2149.     $this->altroFrassino $fd->preSetData($this$altroFrassino);
  2150.     return $this;
  2151. }
  2152. }