<?php
/**
* Inheritance: yes
* Variants: no
*
* Fields Summary:
* - nome [input]
* - codice [input]
* - url3d [input]
* - posizione [numeric]
* - localizedfields [localizedfields]
* -- url [urlSlug]
* -- descrizione [wysiwyg]
* - consumoCuoio [numeric]
* - consumoPelle [numeric]
* - consumoStoffa [numeric]
* - imballo [numeric]
* - volume [numeric]
* - peso [numeric]
* - hb [numeric]
* - hs [numeric]
* - profondita [numeric]
* - lunghezza [numeric]
* - altezza [numeric]
* - fotoPricipale [image]
* - foto2 [image]
* - foto3 [image]
* - foto4 [image]
* - categories [manyToManyObjectRelation]
* - famiglia [manyToManyObjectRelation]
* - correlati [manyToManyObjectRelation]
* - tag [manyToManyObjectRelation]
* - tipologia [manyToManyObjectRelation]
* - stile [manyToManyObjectRelation]
* - materialeStruttura [manyToManyObjectRelation]
* - specifiche [manyToManyObjectRelation]
* - utilizzo [manyToManyObjectRelation]
* - contract [manyToManyObjectRelation]
* - rivestimenti [manyToManyObjectRelation]
* - finiture [manyToManyObjectRelation]
* - varianti [objectbricks]
* - variantiFrassino [objectbricks]
* - fustoGrezzo [objectbricks]
* - fustoGrezzoFrassino [objectbricks]
* - pannelliGommeTappezzeria [objectbricks]
* - materialeImballo [objectbricks]
* - componentiLegno [objectbricks]
* - componentiLegnoFrassino [objectbricks]
* - componentiPaglia [objectbricks]
* - tipiDiVerniciatura [objectbricks]
* - tipiDiVerniciaturaFrassino [objectbricks]
* - tappezzeriaStoffa [objectbricks]
* - tappezzeriaPelle [objectbricks]
* - imballoSedieFinite [objectbricks]
* - consumi [objectbricks]
* - fasceDiSconto [objectbricks]
* - altro [objectbricks]
* - altroFrassino [objectbricks]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Product\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByNome($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCodice($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUrl3d($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPosizione($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUrl($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByDescrizione($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConsumoCuoio($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConsumoPelle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConsumoStoffa($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByImballo($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByVolume($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPeso($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByHb($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByHs($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByProfondita($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLunghezza($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByAltezza($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFotoPricipale($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFoto2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFoto3($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFoto4($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFamiglia($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCorrelati($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByTag($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByTipologia($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByStile($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByMaterialeStruttura($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getBySpecifiche($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUtilizzo($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByContract($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByRivestimenti($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByFiniture($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Product extends \App\Model\Product\AbstractProduct
{
protected $o_classId = "prod";
protected $o_className = "Product";
protected $nome;
protected $codice;
protected $url3d;
protected $posizione;
protected $localizedfields;
protected $consumoCuoio;
protected $consumoPelle;
protected $consumoStoffa;
protected $imballo;
protected $volume;
protected $peso;
protected $hb;
protected $hs;
protected $profondita;
protected $lunghezza;
protected $altezza;
protected $fotoPricipale;
protected $foto2;
protected $foto3;
protected $foto4;
protected $categories;
protected $famiglia;
protected $correlati;
protected $tag;
protected $tipologia;
protected $stile;
protected $materialeStruttura;
protected $specifiche;
protected $utilizzo;
protected $contract;
protected $rivestimenti;
protected $finiture;
protected $varianti;
protected $variantiFrassino;
protected $fustoGrezzo;
protected $fustoGrezzoFrassino;
protected $pannelliGommeTappezzeria;
protected $materialeImballo;
protected $componentiLegno;
protected $componentiLegnoFrassino;
protected $componentiPaglia;
protected $tipiDiVerniciatura;
protected $tipiDiVerniciaturaFrassino;
protected $tappezzeriaStoffa;
protected $tappezzeriaPelle;
protected $imballoSedieFinite;
protected $consumi;
protected $fasceDiSconto;
protected $altro;
protected $altroFrassino;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Product
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get nome - Nome
* @return string|null
*/
public function getNome(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("nome");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->nome;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("nome")->isEmpty($data)) {
try {
return $this->getValueFromParent("nome");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set nome - Nome
* @param string|null $nome
* @return \Pimcore\Model\DataObject\Product
*/
public function setNome(?string $nome)
{
$this->nome = $nome;
return $this;
}
/**
* Get codice - Codice
* @return string|null
*/
public function getCodice(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("codice");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->codice;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("codice")->isEmpty($data)) {
try {
return $this->getValueFromParent("codice");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set codice - Codice
* @param string|null $codice
* @return \Pimcore\Model\DataObject\Product
*/
public function setCodice(?string $codice)
{
$this->codice = $codice;
return $this;
}
/**
* Get url3d - Url3d
* @return string|null
*/
public function getUrl3d(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("url3d");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->url3d;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("url3d")->isEmpty($data)) {
try {
return $this->getValueFromParent("url3d");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set url3d - Url3d
* @param string|null $url3d
* @return \Pimcore\Model\DataObject\Product
*/
public function setUrl3d(?string $url3d)
{
$this->url3d = $url3d;
return $this;
}
/**
* Get posizione - Posizione
* @return int|null
*/
public function getPosizione(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("posizione");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->posizione;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("posizione")->isEmpty($data)) {
try {
return $this->getValueFromParent("posizione");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set posizione - Posizione
* @param int|null $posizione
* @return \Pimcore\Model\DataObject\Product
*/
public function setPosizione(?int $posizione)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("posizione");
$this->posizione = $fd->preSetData($this, $posizione);
return $this;
}
/**
* Get localizedfields -
* @return \Pimcore\Model\DataObject\Localizedfield|null
*/
public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("localizedfields");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("localizedfields")->isEmpty($data)) {
try {
return $this->getValueFromParent("localizedfields");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get url - Url
* @return \Pimcore\Model\DataObject\Data\UrlSlug[]
*/
public function getUrl($language = null): ?array
{
$data = $this->getLocalizedfields()->getLocalizedValue("url", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("url");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get descrizione - Descrizione
* @return string|null
*/
public function getDescrizione($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("descrizione", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("descrizione");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\Product
*/
public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
{
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set url - Url
* @param \Pimcore\Model\DataObject\Data\UrlSlug[] $url
* @return \Pimcore\Model\DataObject\Product
*/
public function setUrl (?array $url, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("url");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getUrl($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $url);
if (!$isEqual) {
$this->markFieldDirty("url", true);
}
$this->getLocalizedfields()->setLocalizedValue("url", $url, $language, !$isEqual);
return $this;
}
/**
* Set descrizione - Descrizione
* @param string|null $descrizione
* @return \Pimcore\Model\DataObject\Product
*/
public function setDescrizione (?string $descrizione, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("descrizione", $descrizione, $language, !$isEqual);
return $this;
}
/**
* Get consumoCuoio - Consumo Cuoio
* @return float|null
*/
public function getConsumoCuoio(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("consumoCuoio");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->consumoCuoio;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("consumoCuoio")->isEmpty($data)) {
try {
return $this->getValueFromParent("consumoCuoio");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set consumoCuoio - Consumo Cuoio
* @param float|null $consumoCuoio
* @return \Pimcore\Model\DataObject\Product
*/
public function setConsumoCuoio(?float $consumoCuoio)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("consumoCuoio");
$this->consumoCuoio = $fd->preSetData($this, $consumoCuoio);
return $this;
}
/**
* Get consumoPelle - Consumo Pelle
* @return float|null
*/
public function getConsumoPelle(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("consumoPelle");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->consumoPelle;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("consumoPelle")->isEmpty($data)) {
try {
return $this->getValueFromParent("consumoPelle");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set consumoPelle - Consumo Pelle
* @param float|null $consumoPelle
* @return \Pimcore\Model\DataObject\Product
*/
public function setConsumoPelle(?float $consumoPelle)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("consumoPelle");
$this->consumoPelle = $fd->preSetData($this, $consumoPelle);
return $this;
}
/**
* Get consumoStoffa - Consumo Stoffa
* @return float|null
*/
public function getConsumoStoffa(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("consumoStoffa");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->consumoStoffa;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("consumoStoffa")->isEmpty($data)) {
try {
return $this->getValueFromParent("consumoStoffa");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set consumoStoffa - Consumo Stoffa
* @param float|null $consumoStoffa
* @return \Pimcore\Model\DataObject\Product
*/
public function setConsumoStoffa(?float $consumoStoffa)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("consumoStoffa");
$this->consumoStoffa = $fd->preSetData($this, $consumoStoffa);
return $this;
}
/**
* Get imballo - Imballo
* @return float|null
*/
public function getImballo(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("imballo");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->imballo;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("imballo")->isEmpty($data)) {
try {
return $this->getValueFromParent("imballo");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set imballo - Imballo
* @param float|null $imballo
* @return \Pimcore\Model\DataObject\Product
*/
public function setImballo(?float $imballo)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("imballo");
$this->imballo = $fd->preSetData($this, $imballo);
return $this;
}
/**
* Get volume - Volume
* @return float|null
*/
public function getVolume(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("volume");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->volume;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("volume")->isEmpty($data)) {
try {
return $this->getValueFromParent("volume");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set volume - Volume
* @param float|null $volume
* @return \Pimcore\Model\DataObject\Product
*/
public function setVolume(?float $volume)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("volume");
$this->volume = $fd->preSetData($this, $volume);
return $this;
}
/**
* Get peso - Peso
* @return float|null
*/
public function getPeso(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("peso");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->peso;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("peso")->isEmpty($data)) {
try {
return $this->getValueFromParent("peso");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set peso - Peso
* @param float|null $peso
* @return \Pimcore\Model\DataObject\Product
*/
public function setPeso(?float $peso)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("peso");
$this->peso = $fd->preSetData($this, $peso);
return $this;
}
/**
* Get hb - Hb
* @return float|null
*/
public function getHb(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("hb");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->hb;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("hb")->isEmpty($data)) {
try {
return $this->getValueFromParent("hb");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set hb - Hb
* @param float|null $hb
* @return \Pimcore\Model\DataObject\Product
*/
public function setHb(?float $hb)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("hb");
$this->hb = $fd->preSetData($this, $hb);
return $this;
}
/**
* Get hs - Hs
* @return float|null
*/
public function getHs(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("hs");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->hs;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("hs")->isEmpty($data)) {
try {
return $this->getValueFromParent("hs");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set hs - Hs
* @param float|null $hs
* @return \Pimcore\Model\DataObject\Product
*/
public function setHs(?float $hs)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("hs");
$this->hs = $fd->preSetData($this, $hs);
return $this;
}
/**
* Get profondita - Profondita
* @return float|null
*/
public function getProfondita(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("profondita");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->profondita;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("profondita")->isEmpty($data)) {
try {
return $this->getValueFromParent("profondita");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set profondita - Profondita
* @param float|null $profondita
* @return \Pimcore\Model\DataObject\Product
*/
public function setProfondita(?float $profondita)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("profondita");
$this->profondita = $fd->preSetData($this, $profondita);
return $this;
}
/**
* Get lunghezza - Lunghezza
* @return float|null
*/
public function getLunghezza(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lunghezza");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lunghezza;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("lunghezza")->isEmpty($data)) {
try {
return $this->getValueFromParent("lunghezza");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lunghezza - Lunghezza
* @param float|null $lunghezza
* @return \Pimcore\Model\DataObject\Product
*/
public function setLunghezza(?float $lunghezza)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("lunghezza");
$this->lunghezza = $fd->preSetData($this, $lunghezza);
return $this;
}
/**
* Get altezza - Altezza
* @return float|null
*/
public function getAltezza(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("altezza");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->altezza;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("altezza")->isEmpty($data)) {
try {
return $this->getValueFromParent("altezza");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set altezza - Altezza
* @param float|null $altezza
* @return \Pimcore\Model\DataObject\Product
*/
public function setAltezza(?float $altezza)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("altezza");
$this->altezza = $fd->preSetData($this, $altezza);
return $this;
}
/**
* Get fotoPricipale - Foto Pricipale
* @return \Pimcore\Model\Asset\Image|null
*/
public function getFotoPricipale(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fotoPricipale");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->fotoPricipale;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("fotoPricipale")->isEmpty($data)) {
try {
return $this->getValueFromParent("fotoPricipale");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set fotoPricipale - Foto Pricipale
* @param \Pimcore\Model\Asset\Image|null $fotoPricipale
* @return \Pimcore\Model\DataObject\Product
*/
public function setFotoPricipale(?\Pimcore\Model\Asset\Image $fotoPricipale)
{
$this->fotoPricipale = $fotoPricipale;
return $this;
}
/**
* Get foto2 - Foto2
* @return \Pimcore\Model\Asset\Image|null
*/
public function getFoto2(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("foto2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->foto2;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("foto2")->isEmpty($data)) {
try {
return $this->getValueFromParent("foto2");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set foto2 - Foto2
* @param \Pimcore\Model\Asset\Image|null $foto2
* @return \Pimcore\Model\DataObject\Product
*/
public function setFoto2(?\Pimcore\Model\Asset\Image $foto2)
{
$this->foto2 = $foto2;
return $this;
}
/**
* Get foto3 - Foto3
* @return \Pimcore\Model\Asset\Image|null
*/
public function getFoto3(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("foto3");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->foto3;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("foto3")->isEmpty($data)) {
try {
return $this->getValueFromParent("foto3");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set foto3 - Foto3
* @param \Pimcore\Model\Asset\Image|null $foto3
* @return \Pimcore\Model\DataObject\Product
*/
public function setFoto3(?\Pimcore\Model\Asset\Image $foto3)
{
$this->foto3 = $foto3;
return $this;
}
/**
* Get foto4 - Foto4
* @return \Pimcore\Model\Asset\Image|null
*/
public function getFoto4(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("foto4");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->foto4;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("foto4")->isEmpty($data)) {
try {
return $this->getValueFromParent("foto4");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set foto4 - Foto4
* @param \Pimcore\Model\Asset\Image|null $foto4
* @return \Pimcore\Model\DataObject\Product
*/
public function setFoto4(?\Pimcore\Model\Asset\Image $foto4)
{
$this->foto4 = $foto4;
return $this;
}
/**
* Get categories - Categoria
* @return \Pimcore\Model\DataObject\Category[]
*/
public function getCategories(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("categories");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("categories")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("categories")->isEmpty($data)) {
try {
return $this->getValueFromParent("categories");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categories - Categoria
* @param \Pimcore\Model\DataObject\Category[] $categories
* @return \Pimcore\Model\DataObject\Product
*/
public function setCategories(?array $categories)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("categories");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategories();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $categories);
if (!$isEqual) {
$this->markFieldDirty("categories", true);
}
$this->categories = $fd->preSetData($this, $categories);
return $this;
}
/**
* Get famiglia - Famiglia
* @return \Pimcore\Model\DataObject\Product[]
*/
public function getFamiglia(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("famiglia");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("famiglia")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("famiglia")->isEmpty($data)) {
try {
return $this->getValueFromParent("famiglia");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set famiglia - Famiglia
* @param \Pimcore\Model\DataObject\Product[] $famiglia
* @return \Pimcore\Model\DataObject\Product
*/
public function setFamiglia(?array $famiglia)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("famiglia");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getFamiglia();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $famiglia);
if (!$isEqual) {
$this->markFieldDirty("famiglia", true);
}
$this->famiglia = $fd->preSetData($this, $famiglia);
return $this;
}
/**
* Get correlati - Correlati
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getCorrelati(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("correlati");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("correlati")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("correlati")->isEmpty($data)) {
try {
return $this->getValueFromParent("correlati");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set correlati - Correlati
* @param \Pimcore\Model\DataObject\AbstractObject[] $correlati
* @return \Pimcore\Model\DataObject\Product
*/
public function setCorrelati(?array $correlati)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("correlati");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCorrelati();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $correlati);
if (!$isEqual) {
$this->markFieldDirty("correlati", true);
}
$this->correlati = $fd->preSetData($this, $correlati);
return $this;
}
/**
* Get tag - Tag
* @return \Pimcore\Model\DataObject\Tag[]
*/
public function getTag(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tag");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("tag")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("tag")->isEmpty($data)) {
try {
return $this->getValueFromParent("tag");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set tag - Tag
* @param \Pimcore\Model\DataObject\Tag[] $tag
* @return \Pimcore\Model\DataObject\Product
*/
public function setTag(?array $tag)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("tag");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getTag();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $tag);
if (!$isEqual) {
$this->markFieldDirty("tag", true);
}
$this->tag = $fd->preSetData($this, $tag);
return $this;
}
/**
* Get tipologia - Tipologia
* @return \Pimcore\Model\DataObject\Tipologia[]
*/
public function getTipologia(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tipologia");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("tipologia")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("tipologia")->isEmpty($data)) {
try {
return $this->getValueFromParent("tipologia");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set tipologia - Tipologia
* @param \Pimcore\Model\DataObject\Tipologia[] $tipologia
* @return \Pimcore\Model\DataObject\Product
*/
public function setTipologia(?array $tipologia)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("tipologia");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getTipologia();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $tipologia);
if (!$isEqual) {
$this->markFieldDirty("tipologia", true);
}
$this->tipologia = $fd->preSetData($this, $tipologia);
return $this;
}
/**
* Get stile - Stile
* @return \Pimcore\Model\DataObject\Stile[]
*/
public function getStile(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("stile");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("stile")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("stile")->isEmpty($data)) {
try {
return $this->getValueFromParent("stile");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set stile - Stile
* @param \Pimcore\Model\DataObject\Stile[] $stile
* @return \Pimcore\Model\DataObject\Product
*/
public function setStile(?array $stile)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("stile");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getStile();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $stile);
if (!$isEqual) {
$this->markFieldDirty("stile", true);
}
$this->stile = $fd->preSetData($this, $stile);
return $this;
}
/**
* Get materialeStruttura - Materiale Struttura
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getMaterialeStruttura(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("materialeStruttura");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("materialeStruttura")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("materialeStruttura")->isEmpty($data)) {
try {
return $this->getValueFromParent("materialeStruttura");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set materialeStruttura - Materiale Struttura
* @param \Pimcore\Model\DataObject\AbstractObject[] $materialeStruttura
* @return \Pimcore\Model\DataObject\Product
*/
public function setMaterialeStruttura(?array $materialeStruttura)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("materialeStruttura");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getMaterialeStruttura();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $materialeStruttura);
if (!$isEqual) {
$this->markFieldDirty("materialeStruttura", true);
}
$this->materialeStruttura = $fd->preSetData($this, $materialeStruttura);
return $this;
}
/**
* Get specifiche - Specifiche
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getSpecifiche(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("specifiche");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("specifiche")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("specifiche")->isEmpty($data)) {
try {
return $this->getValueFromParent("specifiche");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set specifiche - Specifiche
* @param \Pimcore\Model\DataObject\AbstractObject[] $specifiche
* @return \Pimcore\Model\DataObject\Product
*/
public function setSpecifiche(?array $specifiche)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("specifiche");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getSpecifiche();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $specifiche);
if (!$isEqual) {
$this->markFieldDirty("specifiche", true);
}
$this->specifiche = $fd->preSetData($this, $specifiche);
return $this;
}
/**
* Get utilizzo - Utilizzo
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getUtilizzo(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("utilizzo");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("utilizzo")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("utilizzo")->isEmpty($data)) {
try {
return $this->getValueFromParent("utilizzo");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set utilizzo - Utilizzo
* @param \Pimcore\Model\DataObject\AbstractObject[] $utilizzo
* @return \Pimcore\Model\DataObject\Product
*/
public function setUtilizzo(?array $utilizzo)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("utilizzo");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getUtilizzo();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $utilizzo);
if (!$isEqual) {
$this->markFieldDirty("utilizzo", true);
}
$this->utilizzo = $fd->preSetData($this, $utilizzo);
return $this;
}
/**
* Get contract - Contract
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getContract(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("contract");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("contract")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("contract")->isEmpty($data)) {
try {
return $this->getValueFromParent("contract");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set contract - Contract
* @param \Pimcore\Model\DataObject\AbstractObject[] $contract
* @return \Pimcore\Model\DataObject\Product
*/
public function setContract(?array $contract)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("contract");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getContract();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $contract);
if (!$isEqual) {
$this->markFieldDirty("contract", true);
}
$this->contract = $fd->preSetData($this, $contract);
return $this;
}
/**
* Get rivestimenti - Rivestimenti
* @return \Pimcore\Model\DataObject\RivestimentiCategory[]
*/
public function getRivestimenti(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("rivestimenti");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("rivestimenti")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("rivestimenti")->isEmpty($data)) {
try {
return $this->getValueFromParent("rivestimenti");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set rivestimenti - Rivestimenti
* @param \Pimcore\Model\DataObject\RivestimentiCategory[] $rivestimenti
* @return \Pimcore\Model\DataObject\Product
*/
public function setRivestimenti(?array $rivestimenti)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("rivestimenti");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getRivestimenti();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $rivestimenti);
if (!$isEqual) {
$this->markFieldDirty("rivestimenti", true);
}
$this->rivestimenti = $fd->preSetData($this, $rivestimenti);
return $this;
}
/**
* Get finiture - Finiture
* @return \Pimcore\Model\DataObject\FinitureTipologie[]
*/
public function getFiniture(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("finiture");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("finiture")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("finiture")->isEmpty($data)) {
try {
return $this->getValueFromParent("finiture");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set finiture - Finiture
* @param \Pimcore\Model\DataObject\FinitureTipologie[] $finiture
* @return \Pimcore\Model\DataObject\Product
*/
public function setFiniture(?array $finiture)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("finiture");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getFiniture();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $finiture);
if (!$isEqual) {
$this->markFieldDirty("finiture", true);
}
$this->finiture = $fd->preSetData($this, $finiture);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\Varianti
*/
public function getVarianti(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->varianti;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\Varianti")) {
$data = new \Pimcore\Model\DataObject\Product\Varianti($this, "varianti");
$this->varianti = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("varianti");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set varianti - Varianti
* @param \Pimcore\Model\DataObject\Objectbrick|null $varianti
* @return \Pimcore\Model\DataObject\Product
*/
public function setVarianti(?\Pimcore\Model\DataObject\Objectbrick $varianti)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("varianti");
$this->varianti = $fd->preSetData($this, $varianti);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\VariantiFrassino
*/
public function getVariantiFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->variantiFrassino;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\VariantiFrassino")) {
$data = new \Pimcore\Model\DataObject\Product\VariantiFrassino($this, "variantiFrassino");
$this->variantiFrassino = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("variantiFrassino");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set variantiFrassino - Varianti Frassino
* @param \Pimcore\Model\DataObject\Objectbrick|null $variantiFrassino
* @return \Pimcore\Model\DataObject\Product
*/
public function setVariantiFrassino(?\Pimcore\Model\DataObject\Objectbrick $variantiFrassino)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("variantiFrassino");
$this->variantiFrassino = $fd->preSetData($this, $variantiFrassino);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\FustoGrezzo
*/
public function getFustoGrezzo(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->fustoGrezzo;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\FustoGrezzo")) {
$data = new \Pimcore\Model\DataObject\Product\FustoGrezzo($this, "fustoGrezzo");
$this->fustoGrezzo = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fustoGrezzo");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set fustoGrezzo - Fusto grezzo
* @param \Pimcore\Model\DataObject\Objectbrick|null $fustoGrezzo
* @return \Pimcore\Model\DataObject\Product
*/
public function setFustoGrezzo(?\Pimcore\Model\DataObject\Objectbrick $fustoGrezzo)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("fustoGrezzo");
$this->fustoGrezzo = $fd->preSetData($this, $fustoGrezzo);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\FustoGrezzoFrassino
*/
public function getFustoGrezzoFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->fustoGrezzoFrassino;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\FustoGrezzoFrassino")) {
$data = new \Pimcore\Model\DataObject\Product\FustoGrezzoFrassino($this, "fustoGrezzoFrassino");
$this->fustoGrezzoFrassino = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fustoGrezzoFrassino");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set fustoGrezzoFrassino - Fusto Grezzo Frassino
* @param \Pimcore\Model\DataObject\Objectbrick|null $fustoGrezzoFrassino
* @return \Pimcore\Model\DataObject\Product
*/
public function setFustoGrezzoFrassino(?\Pimcore\Model\DataObject\Objectbrick $fustoGrezzoFrassino)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("fustoGrezzoFrassino");
$this->fustoGrezzoFrassino = $fd->preSetData($this, $fustoGrezzoFrassino);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\PannelliGommeTappezzeria
*/
public function getPannelliGommeTappezzeria(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->pannelliGommeTappezzeria;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\PannelliGommeTappezzeria")) {
$data = new \Pimcore\Model\DataObject\Product\PannelliGommeTappezzeria($this, "pannelliGommeTappezzeria");
$this->pannelliGommeTappezzeria = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("pannelliGommeTappezzeria");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set pannelliGommeTappezzeria - Pannelli, gomme e materiali tappezzeria
* @param \Pimcore\Model\DataObject\Objectbrick|null $pannelliGommeTappezzeria
* @return \Pimcore\Model\DataObject\Product
*/
public function setPannelliGommeTappezzeria(?\Pimcore\Model\DataObject\Objectbrick $pannelliGommeTappezzeria)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("pannelliGommeTappezzeria");
$this->pannelliGommeTappezzeria = $fd->preSetData($this, $pannelliGommeTappezzeria);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\MaterialeImballo
*/
public function getMaterialeImballo(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->materialeImballo;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\MaterialeImballo")) {
$data = new \Pimcore\Model\DataObject\Product\MaterialeImballo($this, "materialeImballo");
$this->materialeImballo = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("materialeImballo");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set materialeImballo - Materiale imballo e varie
* @param \Pimcore\Model\DataObject\Objectbrick|null $materialeImballo
* @return \Pimcore\Model\DataObject\Product
*/
public function setMaterialeImballo(?\Pimcore\Model\DataObject\Objectbrick $materialeImballo)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("materialeImballo");
$this->materialeImballo = $fd->preSetData($this, $materialeImballo);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\ComponentiLegno
*/
public function getComponentiLegno(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->componentiLegno;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ComponentiLegno")) {
$data = new \Pimcore\Model\DataObject\Product\ComponentiLegno($this, "componentiLegno");
$this->componentiLegno = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("componentiLegno");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set componentiLegno - Componenti legno per verniciare
* @param \Pimcore\Model\DataObject\Objectbrick|null $componentiLegno
* @return \Pimcore\Model\DataObject\Product
*/
public function setComponentiLegno(?\Pimcore\Model\DataObject\Objectbrick $componentiLegno)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("componentiLegno");
$this->componentiLegno = $fd->preSetData($this, $componentiLegno);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\ComponentiLegnoFrassino
*/
public function getComponentiLegnoFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->componentiLegnoFrassino;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ComponentiLegnoFrassino")) {
$data = new \Pimcore\Model\DataObject\Product\ComponentiLegnoFrassino($this, "componentiLegnoFrassino");
$this->componentiLegnoFrassino = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("componentiLegnoFrassino");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set componentiLegnoFrassino - Componenti Legno Frassino
* @param \Pimcore\Model\DataObject\Objectbrick|null $componentiLegnoFrassino
* @return \Pimcore\Model\DataObject\Product
*/
public function setComponentiLegnoFrassino(?\Pimcore\Model\DataObject\Objectbrick $componentiLegnoFrassino)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("componentiLegnoFrassino");
$this->componentiLegnoFrassino = $fd->preSetData($this, $componentiLegnoFrassino);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\ComponentiPaglia
*/
public function getComponentiPaglia(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->componentiPaglia;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ComponentiPaglia")) {
$data = new \Pimcore\Model\DataObject\Product\ComponentiPaglia($this, "componentiPaglia");
$this->componentiPaglia = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("componentiPaglia");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set componentiPaglia - Componenti paglia
* @param \Pimcore\Model\DataObject\Objectbrick|null $componentiPaglia
* @return \Pimcore\Model\DataObject\Product
*/
public function setComponentiPaglia(?\Pimcore\Model\DataObject\Objectbrick $componentiPaglia)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("componentiPaglia");
$this->componentiPaglia = $fd->preSetData($this, $componentiPaglia);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\TipiDiVerniciatura
*/
public function getTipiDiVerniciatura(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->tipiDiVerniciatura;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TipiDiVerniciatura")) {
$data = new \Pimcore\Model\DataObject\Product\TipiDiVerniciatura($this, "tipiDiVerniciatura");
$this->tipiDiVerniciatura = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tipiDiVerniciatura");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set tipiDiVerniciatura - Tipi di verniciatura
* @param \Pimcore\Model\DataObject\Objectbrick|null $tipiDiVerniciatura
* @return \Pimcore\Model\DataObject\Product
*/
public function setTipiDiVerniciatura(?\Pimcore\Model\DataObject\Objectbrick $tipiDiVerniciatura)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("tipiDiVerniciatura");
$this->tipiDiVerniciatura = $fd->preSetData($this, $tipiDiVerniciatura);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\TipiDiVerniciaturaFrassino
*/
public function getTipiDiVerniciaturaFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->tipiDiVerniciaturaFrassino;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TipiDiVerniciaturaFrassino")) {
$data = new \Pimcore\Model\DataObject\Product\TipiDiVerniciaturaFrassino($this, "tipiDiVerniciaturaFrassino");
$this->tipiDiVerniciaturaFrassino = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tipiDiVerniciaturaFrassino");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set tipiDiVerniciaturaFrassino - Tipi Di Verniciatura Frassino
* @param \Pimcore\Model\DataObject\Objectbrick|null $tipiDiVerniciaturaFrassino
* @return \Pimcore\Model\DataObject\Product
*/
public function setTipiDiVerniciaturaFrassino(?\Pimcore\Model\DataObject\Objectbrick $tipiDiVerniciaturaFrassino)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("tipiDiVerniciaturaFrassino");
$this->tipiDiVerniciaturaFrassino = $fd->preSetData($this, $tipiDiVerniciaturaFrassino);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\TappezzeriaStoffa
*/
public function getTappezzeriaStoffa(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->tappezzeriaStoffa;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TappezzeriaStoffa")) {
$data = new \Pimcore\Model\DataObject\Product\TappezzeriaStoffa($this, "tappezzeriaStoffa");
$this->tappezzeriaStoffa = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tappezzeriaStoffa");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set tappezzeriaStoffa - Tappezzeria stoffa
* @param \Pimcore\Model\DataObject\Objectbrick|null $tappezzeriaStoffa
* @return \Pimcore\Model\DataObject\Product
*/
public function setTappezzeriaStoffa(?\Pimcore\Model\DataObject\Objectbrick $tappezzeriaStoffa)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("tappezzeriaStoffa");
$this->tappezzeriaStoffa = $fd->preSetData($this, $tappezzeriaStoffa);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\TappezzeriaPelle
*/
public function getTappezzeriaPelle(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->tappezzeriaPelle;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\TappezzeriaPelle")) {
$data = new \Pimcore\Model\DataObject\Product\TappezzeriaPelle($this, "tappezzeriaPelle");
$this->tappezzeriaPelle = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tappezzeriaPelle");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set tappezzeriaPelle - Tappezzeria pelle
* @param \Pimcore\Model\DataObject\Objectbrick|null $tappezzeriaPelle
* @return \Pimcore\Model\DataObject\Product
*/
public function setTappezzeriaPelle(?\Pimcore\Model\DataObject\Objectbrick $tappezzeriaPelle)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("tappezzeriaPelle");
$this->tappezzeriaPelle = $fd->preSetData($this, $tappezzeriaPelle);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\ImballoSedieFinite
*/
public function getImballoSedieFinite(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->imballoSedieFinite;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\ImballoSedieFinite")) {
$data = new \Pimcore\Model\DataObject\Product\ImballoSedieFinite($this, "imballoSedieFinite");
$this->imballoSedieFinite = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("imballoSedieFinite");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set imballoSedieFinite - Imballo sedie finite
* @param \Pimcore\Model\DataObject\Objectbrick|null $imballoSedieFinite
* @return \Pimcore\Model\DataObject\Product
*/
public function setImballoSedieFinite(?\Pimcore\Model\DataObject\Objectbrick $imballoSedieFinite)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("imballoSedieFinite");
$this->imballoSedieFinite = $fd->preSetData($this, $imballoSedieFinite);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\Consumi
*/
public function getConsumi(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->consumi;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\Consumi")) {
$data = new \Pimcore\Model\DataObject\Product\Consumi($this, "consumi");
$this->consumi = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("consumi");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set consumi - Consumi
* @param \Pimcore\Model\DataObject\Objectbrick|null $consumi
* @return \Pimcore\Model\DataObject\Product
*/
public function setConsumi(?\Pimcore\Model\DataObject\Objectbrick $consumi)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("consumi");
$this->consumi = $fd->preSetData($this, $consumi);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\FasceDiSconto
*/
public function getFasceDiSconto(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->fasceDiSconto;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\FasceDiSconto")) {
$data = new \Pimcore\Model\DataObject\Product\FasceDiSconto($this, "fasceDiSconto");
$this->fasceDiSconto = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fasceDiSconto");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set fasceDiSconto - Fasce di sconto/produzione
* @param \Pimcore\Model\DataObject\Objectbrick|null $fasceDiSconto
* @return \Pimcore\Model\DataObject\Product
*/
public function setFasceDiSconto(?\Pimcore\Model\DataObject\Objectbrick $fasceDiSconto)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("fasceDiSconto");
$this->fasceDiSconto = $fd->preSetData($this, $fasceDiSconto);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\Altro
*/
public function getAltro(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->altro;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\Altro")) {
$data = new \Pimcore\Model\DataObject\Product\Altro($this, "altro");
$this->altro = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("altro");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set altro - Altro
* @param \Pimcore\Model\DataObject\Objectbrick|null $altro
* @return \Pimcore\Model\DataObject\Product
*/
public function setAltro(?\Pimcore\Model\DataObject\Objectbrick $altro)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("altro");
$this->altro = $fd->preSetData($this, $altro);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Product\AltroFrassino
*/
public function getAltroFrassino(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->altroFrassino;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Product\\AltroFrassino")) {
$data = new \Pimcore\Model\DataObject\Product\AltroFrassino($this, "altroFrassino");
$this->altroFrassino = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("altroFrassino");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set altroFrassino - Altro Frassino
* @param \Pimcore\Model\DataObject\Objectbrick|null $altroFrassino
* @return \Pimcore\Model\DataObject\Product
*/
public function setAltroFrassino(?\Pimcore\Model\DataObject\Objectbrick $altroFrassino)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("altroFrassino");
$this->altroFrassino = $fd->preSetData($this, $altroFrassino);
return $this;
}
}