<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - description [calculatedValue]
* - productsheet [calculatedValue]
* - images [calculatedValue]
* - ingredients [calculatedValue]
* - allergens [calculatedValue]
* - nutrients [calculatedValue]
* - descriptionAvailable [calculatedValue]
* - productsheetAvailable [calculatedValue]
* - imagesAvailable [calculatedValue]
* - ingredientsAvailable [calculatedValue]
* - allergensAvailable [calculatedValue]
* - nutrientsAvailable [calculatedValue]
* - customDescription [wysiwyg]
* - customProductsheet [manyToOneRelation]
* - customImages [imageGallery]
* - psinfoodId [input]
* - psinfoodLastSynced [datetime]
* - psinfoodDescription [textarea]
* - psinfoodDocuments [textarea]
* - psinfoodIngredients [textarea]
* - psinfoodAllergens [textarea]
* - psinfoodNutrients [textarea]
* - psinfoodPhotosResponse [textarea]
* - psinfoodProductsheet [input]
* - psinfoodPackshot [externalImage]
* - psInFoodPhotos [imageGallery]
* - gs1NeedsUpdate [checkbox]
* - gs1LastSynced [datetime]
* - gs1Images [imageGallery]
* - gs1Description [textarea]
* - gs1Documents [textarea]
* - gs1Ingredients [textarea]
* - gs1Allergens [textarea]
* - gs1Nutrients [textarea]
* - gs1Response [textarea]
* - localizedfields [localizedfields]
* -- slug [urlSlug]
* -- name [input]
* - categories [manyToManyObjectRelation]
* - categoryTypes [manyToManyObjectRelation]
* - papyrusId [input]
* - lastSynced [input]
* - onOrder [checkbox]
* - stock [checkbox]
* - location [input]
* - code [input]
* - group [input]
* - brand [input]
* - barcode [input]
* - barcode2 [input]
* - barcode3 [input]
* - barcode4 [input]
* - barcode5 [input]
* - barcode6 [input]
* - barcode7 [input]
* - barcode8 [input]
* - barcode9 [input]
* - barcode10 [input]
* - unit [input]
* - unitMinimum [input]
* - AllowCustomerDiscount [booleanSelect]
* - searchKeywords [textarea]
* - Ranking [numeric]
* - webText [textarea]
* - price1 [numeric]
* - price2 [numeric]
* - price3 [numeric]
* - price4 [numeric]
* - vatcode [numeric]
* - promoDate1 [date]
* - promoDate2 [date]
* - promoPercentage [numeric]
* - promoPrice [numeric]
*/
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 getByCustomDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCustomProductsheet($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodLastSynced($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodDocuments($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodIngredients($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodAllergens($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodNutrients($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodPhotosResponse($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPsinfoodProductsheet($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1NeedsUpdate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1LastSynced($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Description($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Documents($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Ingredients($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Allergens($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Nutrients($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGs1Response($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 getBySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByName($value, $locale = null, $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 getByCategoryTypes($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPapyrusId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLastSynced($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByOnOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByStock($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCode($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGroup($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBrand($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode3($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode4($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode5($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode6($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode7($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode8($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode9($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarcode10($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUnit($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByUnitMinimum($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getBySearchKeywords($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByRanking($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByWebText($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice1($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice3($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice4($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByVatcode($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoDate1($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoDate2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoPercentage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPromoPrice($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Product extends \App\Model\Product\AbstractProduct
{
protected $o_classId = "8";
protected $o_className = "Product";
protected $customDescription;
protected $customProductsheet;
protected $customImages;
protected $psinfoodId;
protected $psinfoodLastSynced;
protected $psinfoodDescription;
protected $psinfoodDocuments;
protected $psinfoodIngredients;
protected $psinfoodAllergens;
protected $psinfoodNutrients;
protected $psinfoodPhotosResponse;
protected $psinfoodProductsheet;
protected $psinfoodPackshot;
protected $psInFoodPhotos;
protected $gs1NeedsUpdate;
protected $gs1LastSynced;
protected $gs1Images;
protected $gs1Description;
protected $gs1Documents;
protected $gs1Ingredients;
protected $gs1Allergens;
protected $gs1Nutrients;
protected $gs1Response;
protected $localizedfields;
protected $categories;
protected $categoryTypes;
protected $papyrusId;
protected $lastSynced;
protected $onOrder;
protected $stock;
protected $location;
protected $code;
protected $group;
protected $brand;
protected $barcode;
protected $barcode2;
protected $barcode3;
protected $barcode4;
protected $barcode5;
protected $barcode6;
protected $barcode7;
protected $barcode8;
protected $barcode9;
protected $barcode10;
protected $unit;
protected $unitMinimum;
protected $AllowCustomerDiscount;
protected $searchKeywords;
protected $Ranking;
protected $webText;
protected $price1;
protected $price2;
protected $price3;
protected $price4;
protected $vatcode;
protected $promoDate1;
protected $promoDate2;
protected $promoPercentage;
protected $promoPrice;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Product
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get description - Omschrijving
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getDescription()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('description');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set description - Omschrijving
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $description
* @return \Pimcore\Model\DataObject\Product
*/
public function setDescription($description)
{
return $this;
}
/**
* Get productsheet - Productfiche
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getProductsheet()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('productsheet');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set productsheet - Productfiche
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $productsheet
* @return \Pimcore\Model\DataObject\Product
*/
public function setProductsheet($productsheet)
{
return $this;
}
/**
* Get images - Images
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getImages()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('images');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set images - Images
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $images
* @return \Pimcore\Model\DataObject\Product
*/
public function setImages($images)
{
return $this;
}
/**
* Get ingredients - Ingrediënten
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getIngredients()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('ingredients');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set ingredients - Ingrediënten
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $ingredients
* @return \Pimcore\Model\DataObject\Product
*/
public function setIngredients($ingredients)
{
return $this;
}
/**
* Get allergens - Allergenen
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getAllergens()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('allergens');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set allergens - Allergenen
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $allergens
* @return \Pimcore\Model\DataObject\Product
*/
public function setAllergens($allergens)
{
return $this;
}
/**
* Get nutrients - Voedingswaarden
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getNutrients()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('nutrients');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set nutrients - Voedingswaarden
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $nutrients
* @return \Pimcore\Model\DataObject\Product
*/
public function setNutrients($nutrients)
{
return $this;
}
/**
* Get descriptionAvailable - Omschrijving status
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getDescriptionAvailable()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('descriptionAvailable');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set descriptionAvailable - Omschrijving status
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $descriptionAvailable
* @return \Pimcore\Model\DataObject\Product
*/
public function setDescriptionAvailable($descriptionAvailable)
{
return $this;
}
/**
* Get productsheetAvailable - Productsheet status
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getProductsheetAvailable()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('productsheetAvailable');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set productsheetAvailable - Productsheet status
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $productsheetAvailable
* @return \Pimcore\Model\DataObject\Product
*/
public function setProductsheetAvailable($productsheetAvailable)
{
return $this;
}
/**
* Get imagesAvailable - Foto's status
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getImagesAvailable()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('imagesAvailable');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set imagesAvailable - Foto's status
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $imagesAvailable
* @return \Pimcore\Model\DataObject\Product
*/
public function setImagesAvailable($imagesAvailable)
{
return $this;
}
/**
* Get ingredientsAvailable - Ingrediënten status
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getIngredientsAvailable()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('ingredientsAvailable');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set ingredientsAvailable - Ingrediënten status
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $ingredientsAvailable
* @return \Pimcore\Model\DataObject\Product
*/
public function setIngredientsAvailable($ingredientsAvailable)
{
return $this;
}
/**
* Get allergensAvailable - Allergenen status
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getAllergensAvailable()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('allergensAvailable');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set allergensAvailable - Allergenen status
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $allergensAvailable
* @return \Pimcore\Model\DataObject\Product
*/
public function setAllergensAvailable($allergensAvailable)
{
return $this;
}
/**
* Get nutrientsAvailable - Voedingswaarde status
* @return \Pimcore\Model\DataObject\Data\CalculatedValue|null
*/
public function getNutrientsAvailable()
{
$data = new \Pimcore\Model\DataObject\Data\CalculatedValue('nutrientsAvailable');
$data->setContextualData("object", null, null, null);
$object = $this;
$data = \Pimcore\Model\DataObject\Service::getCalculatedFieldValue($object, $data);
return $data;
}
/**
* Set nutrientsAvailable - Voedingswaarde status
* @param \Pimcore\Model\DataObject\Data\CalculatedValue|null $nutrientsAvailable
* @return \Pimcore\Model\DataObject\Product
*/
public function setNutrientsAvailable($nutrientsAvailable)
{
return $this;
}
/**
* Get customDescription - Omschrijving
* @return string|null
*/
public function getCustomDescription(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("customDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("customDescription")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set customDescription - Omschrijving
* @param string|null $customDescription
* @return \Pimcore\Model\DataObject\Product
*/
public function setCustomDescription(?string $customDescription)
{
$this->customDescription = $customDescription;
return $this;
}
/**
* Get customProductsheet - Productfiche
* @return \Pimcore\Model\Asset|null
*/
public function getCustomProductsheet(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("customProductsheet");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("customProductsheet")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set customProductsheet - Productfiche
* @param \Pimcore\Model\Asset|null $customProductsheet
* @return \Pimcore\Model\DataObject\Product
*/
public function setCustomProductsheet(?\Pimcore\Model\Element\AbstractElement $customProductsheet)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("customProductsheet");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCustomProductsheet();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $customProductsheet);
if (!$isEqual) {
$this->markFieldDirty("customProductsheet", true);
}
$this->customProductsheet = $fd->preSetData($this, $customProductsheet);
return $this;
}
/**
* Get customImages - Product foto's
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getCustomImages(): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("customImages");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->customImages;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set customImages - Product foto's
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $customImages
* @return \Pimcore\Model\DataObject\Product
*/
public function setCustomImages(?\Pimcore\Model\DataObject\Data\ImageGallery $customImages)
{
$this->customImages = $customImages;
return $this;
}
/**
* Get psinfoodId - Psinfood Id
* @return string|null
*/
public function getPsinfoodId(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodId - Psinfood Id
* @param string|null $psinfoodId
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodId(?string $psinfoodId)
{
$this->psinfoodId = $psinfoodId;
return $this;
}
/**
* Get psinfoodLastSynced - Psinfood Last Synced
* @return \Carbon\Carbon|null
*/
public function getPsinfoodLastSynced(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodLastSynced");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodLastSynced;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodLastSynced - Psinfood Last Synced
* @param \Carbon\Carbon|null $psinfoodLastSynced
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodLastSynced(?\Carbon\Carbon $psinfoodLastSynced)
{
$this->psinfoodLastSynced = $psinfoodLastSynced;
return $this;
}
/**
* Get psinfoodDescription - Psinfood Description
* @return string|null
*/
public function getPsinfoodDescription(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodDescription;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodDescription - Psinfood Description
* @param string|null $psinfoodDescription
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodDescription(?string $psinfoodDescription)
{
$this->psinfoodDescription = $psinfoodDescription;
return $this;
}
/**
* Get psinfoodDocuments - Psinfood Documents
* @return string|null
*/
public function getPsinfoodDocuments(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodDocuments");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodDocuments;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodDocuments - Psinfood Documents
* @param string|null $psinfoodDocuments
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodDocuments(?string $psinfoodDocuments)
{
$this->psinfoodDocuments = $psinfoodDocuments;
return $this;
}
/**
* Get psinfoodIngredients - Psinfood Ingredients
* @return string|null
*/
public function getPsinfoodIngredients(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodIngredients");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodIngredients;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodIngredients - Psinfood Ingredients
* @param string|null $psinfoodIngredients
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodIngredients(?string $psinfoodIngredients)
{
$this->psinfoodIngredients = $psinfoodIngredients;
return $this;
}
/**
* Get psinfoodAllergens - Psinfood Allergens
* @return string|null
*/
public function getPsinfoodAllergens(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodAllergens");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodAllergens;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodAllergens - Psinfood Allergens
* @param string|null $psinfoodAllergens
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodAllergens(?string $psinfoodAllergens)
{
$this->psinfoodAllergens = $psinfoodAllergens;
return $this;
}
/**
* Get psinfoodNutrients - Psinfood Nutrients
* @return string|null
*/
public function getPsinfoodNutrients(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodNutrients");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodNutrients;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodNutrients - Psinfood Nutrients
* @param string|null $psinfoodNutrients
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodNutrients(?string $psinfoodNutrients)
{
$this->psinfoodNutrients = $psinfoodNutrients;
return $this;
}
/**
* Get psinfoodPhotosResponse - Psinfood Photos
* @return string|null
*/
public function getPsinfoodPhotosResponse(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodPhotosResponse");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodPhotosResponse;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodPhotosResponse - Psinfood Photos
* @param string|null $psinfoodPhotosResponse
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodPhotosResponse(?string $psinfoodPhotosResponse)
{
$this->psinfoodPhotosResponse = $psinfoodPhotosResponse;
return $this;
}
/**
* Get psinfoodProductsheet - Productsheet
* @return string|null
*/
public function getPsinfoodProductsheet(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodProductsheet");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodProductsheet;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodProductsheet - Productsheet
* @param string|null $psinfoodProductsheet
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodProductsheet(?string $psinfoodProductsheet)
{
$this->psinfoodProductsheet = $psinfoodProductsheet;
return $this;
}
/**
* Get psinfoodPackshot - Psinfood Packshot
* @return \Pimcore\Model\DataObject\Data\ExternalImage|null
*/
public function getPsinfoodPackshot(): ?\Pimcore\Model\DataObject\Data\ExternalImage
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psinfoodPackshot");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psinfoodPackshot;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psinfoodPackshot - Psinfood Packshot
* @param \Pimcore\Model\DataObject\Data\ExternalImage|null $psinfoodPackshot
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsinfoodPackshot(?\Pimcore\Model\DataObject\Data\ExternalImage $psinfoodPackshot)
{
$this->psinfoodPackshot = $psinfoodPackshot;
return $this;
}
/**
* Get psInFoodPhotos - Ps In Food Photos
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getPsInFoodPhotos(): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("psInFoodPhotos");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->psInFoodPhotos;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set psInFoodPhotos - Ps In Food Photos
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $psInFoodPhotos
* @return \Pimcore\Model\DataObject\Product
*/
public function setPsInFoodPhotos(?\Pimcore\Model\DataObject\Data\ImageGallery $psInFoodPhotos)
{
$this->psInFoodPhotos = $psInFoodPhotos;
return $this;
}
/**
* Get gs1NeedsUpdate - Gs1 Needs Update
* @return bool|null
*/
public function getGs1NeedsUpdate(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1NeedsUpdate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1NeedsUpdate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1NeedsUpdate - Gs1 Needs Update
* @param bool|null $gs1NeedsUpdate
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1NeedsUpdate(?bool $gs1NeedsUpdate)
{
$this->gs1NeedsUpdate = $gs1NeedsUpdate;
return $this;
}
/**
* Get gs1LastSynced - GS1 Laatste syncrhonisatie
* @return \Carbon\Carbon|null
*/
public function getGs1LastSynced(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1LastSynced");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1LastSynced;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1LastSynced - GS1 Laatste syncrhonisatie
* @param \Carbon\Carbon|null $gs1LastSynced
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1LastSynced(?\Carbon\Carbon $gs1LastSynced)
{
$this->gs1LastSynced = $gs1LastSynced;
return $this;
}
/**
* Get gs1Images - Gs1 Images
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getGs1Images(): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Images");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Images;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Images - Gs1 Images
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $gs1Images
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Images(?\Pimcore\Model\DataObject\Data\ImageGallery $gs1Images)
{
$this->gs1Images = $gs1Images;
return $this;
}
/**
* Get gs1Description - GS1 Description
* @return string|null
*/
public function getGs1Description(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Description");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Description;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Description - GS1 Description
* @param string|null $gs1Description
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Description(?string $gs1Description)
{
$this->gs1Description = $gs1Description;
return $this;
}
/**
* Get gs1Documents - GS1 Documents
* @return string|null
*/
public function getGs1Documents(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Documents");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Documents;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Documents - GS1 Documents
* @param string|null $gs1Documents
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Documents(?string $gs1Documents)
{
$this->gs1Documents = $gs1Documents;
return $this;
}
/**
* Get gs1Ingredients - GS1 Ingredients
* @return string|null
*/
public function getGs1Ingredients(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Ingredients");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Ingredients;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Ingredients - GS1 Ingredients
* @param string|null $gs1Ingredients
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Ingredients(?string $gs1Ingredients)
{
$this->gs1Ingredients = $gs1Ingredients;
return $this;
}
/**
* Get gs1Allergens - GS1 Allergens
* @return string|null
*/
public function getGs1Allergens(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Allergens");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Allergens;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Allergens - GS1 Allergens
* @param string|null $gs1Allergens
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Allergens(?string $gs1Allergens)
{
$this->gs1Allergens = $gs1Allergens;
return $this;
}
/**
* Get gs1Nutrients - GS1 Nutrients
* @return string|null
*/
public function getGs1Nutrients(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Nutrients");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Nutrients;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Nutrients - GS1 Nutrients
* @param string|null $gs1Nutrients
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Nutrients(?string $gs1Nutrients)
{
$this->gs1Nutrients = $gs1Nutrients;
return $this;
}
/**
* Get gs1Response - Gs1 Response
* @return string|null
*/
public function getGs1Response(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gs1Response");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gs1Response;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gs1Response - Gs1 Response
* @param string|null $gs1Response
* @return \Pimcore\Model\DataObject\Product
*/
public function setGs1Response(?string $gs1Response)
{
$this->gs1Response = $gs1Response;
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 ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get slug - Slug
* @return \Pimcore\Model\DataObject\Data\UrlSlug[]
*/
public function getSlug($language = null): ?array
{
$data = $this->getLocalizedfields()->getLocalizedValue("slug", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("slug");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get name - Name
* @return string|null
*/
public function getName($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("name", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("name");
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)
{
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set slug - Slug
* @param \Pimcore\Model\DataObject\Data\UrlSlug[] $slug
* @return \Pimcore\Model\DataObject\Product
*/
public function setSlug (?array $slug, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("slug");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getSlug($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $slug);
if (!$isEqual) {
$this->markFieldDirty("slug", true);
}
$this->getLocalizedfields()->setLocalizedValue("slug", $slug, $language, !$isEqual);
return $this;
}
/**
* Set name - Name
* @param string|null $name
* @return \Pimcore\Model\DataObject\Product
*/
public function setName (?string $name, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("name", $name, $language, !$isEqual);
return $this;
}
/**
* Get categories - Categories
* @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 ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categories - Categories
* @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");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategories();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $categories);
if (!$isEqual) {
$this->markFieldDirty("categories", true);
}
$this->categories = $fd->preSetData($this, $categories);
return $this;
}
/**
* Get categoryTypes - Category Types
* @return \Pimcore\Model\DataObject\CategoryType[]
*/
public function getCategoryTypes(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("categoryTypes");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("categoryTypes")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categoryTypes - Category Types
* @param \Pimcore\Model\DataObject\CategoryType[] $categoryTypes
* @return \Pimcore\Model\DataObject\Product
*/
public function setCategoryTypes(?array $categoryTypes)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("categoryTypes");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategoryTypes();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $categoryTypes);
if (!$isEqual) {
$this->markFieldDirty("categoryTypes", true);
}
$this->categoryTypes = $fd->preSetData($this, $categoryTypes);
return $this;
}
/**
* Get papyrusId - Papyrus Id
* @return string|null
*/
public function getPapyrusId(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("papyrusId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->papyrusId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set papyrusId - Papyrus Id
* @param string|null $papyrusId
* @return \Pimcore\Model\DataObject\Product
*/
public function setPapyrusId(?string $papyrusId)
{
$this->papyrusId = $papyrusId;
return $this;
}
/**
* Get lastSynced - Last Synced
* @return string|null
*/
public function getLastSynced(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastSynced");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastSynced;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastSynced - Last Synced
* @param string|null $lastSynced
* @return \Pimcore\Model\DataObject\Product
*/
public function setLastSynced(?string $lastSynced)
{
$this->lastSynced = $lastSynced;
return $this;
}
/**
* Get onOrder - On Order
* @return bool|null
*/
public function getOnOrder(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("onOrder");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->onOrder;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set onOrder - On Order
* @param bool|null $onOrder
* @return \Pimcore\Model\DataObject\Product
*/
public function setOnOrder(?bool $onOrder)
{
$this->onOrder = $onOrder;
return $this;
}
/**
* Get stock - Stock
* @return bool|null
*/
public function getStock(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("stock");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->stock;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set stock - Stock
* @param bool|null $stock
* @return \Pimcore\Model\DataObject\Product
*/
public function setStock(?bool $stock)
{
$this->stock = $stock;
return $this;
}
/**
* Get location - Location
* @return string|null
*/
public function getLocation(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("location");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->location;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set location - Location
* @param string|null $location
* @return \Pimcore\Model\DataObject\Product
*/
public function setLocation(?string $location)
{
$this->location = $location;
return $this;
}
/**
* Get code - Code
* @return string|null
*/
public function getCode(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("code");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->code;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set code - Code
* @param string|null $code
* @return \Pimcore\Model\DataObject\Product
*/
public function setCode(?string $code)
{
$this->code = $code;
return $this;
}
/**
* Get group - Group
* @return string|null
*/
public function getGroup(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("group");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->group;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set group - Group
* @param string|null $group
* @return \Pimcore\Model\DataObject\Product
*/
public function setGroup(?string $group)
{
$this->group = $group;
return $this;
}
/**
* Get brand - Brand
* @return string|null
*/
public function getBrand(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("brand");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->brand;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set brand - Brand
* @param string|null $brand
* @return \Pimcore\Model\DataObject\Product
*/
public function setBrand(?string $brand)
{
$this->brand = $brand;
return $this;
}
/**
* Get barcode - Barcode
* @return string|null
*/
public function getBarcode(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode - Barcode
* @param string|null $barcode
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode(?string $barcode)
{
$this->barcode = $barcode;
return $this;
}
/**
* Get barcode2 - Barcode 2
* @return string|null
*/
public function getBarcode2(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode2;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode2 - Barcode 2
* @param string|null $barcode2
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode2(?string $barcode2)
{
$this->barcode2 = $barcode2;
return $this;
}
/**
* Get barcode3 - Barcode 3
* @return string|null
*/
public function getBarcode3(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode3");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode3;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode3 - Barcode 3
* @param string|null $barcode3
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode3(?string $barcode3)
{
$this->barcode3 = $barcode3;
return $this;
}
/**
* Get barcode4 - Barcode 4
* @return string|null
*/
public function getBarcode4(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode4");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode4;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode4 - Barcode 4
* @param string|null $barcode4
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode4(?string $barcode4)
{
$this->barcode4 = $barcode4;
return $this;
}
/**
* Get barcode5 - Barcode 5
* @return string|null
*/
public function getBarcode5(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode5");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode5;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode5 - Barcode 5
* @param string|null $barcode5
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode5(?string $barcode5)
{
$this->barcode5 = $barcode5;
return $this;
}
/**
* Get barcode6 - Barcode 6
* @return string|null
*/
public function getBarcode6(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode6");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode6;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode6 - Barcode 6
* @param string|null $barcode6
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode6(?string $barcode6)
{
$this->barcode6 = $barcode6;
return $this;
}
/**
* Get barcode7 - Barcode 7
* @return string|null
*/
public function getBarcode7(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode7");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode7;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode7 - Barcode 7
* @param string|null $barcode7
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode7(?string $barcode7)
{
$this->barcode7 = $barcode7;
return $this;
}
/**
* Get barcode8 - Barcode 8
* @return string|null
*/
public function getBarcode8(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode8");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode8;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode8 - Barcode 8
* @param string|null $barcode8
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode8(?string $barcode8)
{
$this->barcode8 = $barcode8;
return $this;
}
/**
* Get barcode9 - Barcode 9
* @return string|null
*/
public function getBarcode9(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode9");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode9;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode9 - Barcode 9
* @param string|null $barcode9
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode9(?string $barcode9)
{
$this->barcode9 = $barcode9;
return $this;
}
/**
* Get barcode10 - Barcode 10
* @return string|null
*/
public function getBarcode10(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barcode10");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barcode10;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barcode10 - Barcode 10
* @param string|null $barcode10
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarcode10(?string $barcode10)
{
$this->barcode10 = $barcode10;
return $this;
}
/**
* Get unit - Unit
* @return string|null
*/
public function getUnit(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("unit");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->unit;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set unit - Unit
* @param string|null $unit
* @return \Pimcore\Model\DataObject\Product
*/
public function setUnit(?string $unit)
{
$this->unit = $unit;
return $this;
}
/**
* Get unitMinimum - Unit _minimum
* @return string|null
*/
public function getUnitMinimum(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("unitMinimum");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->unitMinimum;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set unitMinimum - Unit _minimum
* @param string|null $unitMinimum
* @return \Pimcore\Model\DataObject\Product
*/
public function setUnitMinimum(?string $unitMinimum)
{
$this->unitMinimum = $unitMinimum;
return $this;
}
/**
* Get AllowCustomerDiscount - Allow Customer Discount
* @return bool|null
*/
public function getAllowCustomerDiscount(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("AllowCustomerDiscount");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->AllowCustomerDiscount;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set AllowCustomerDiscount - Allow Customer Discount
* @param bool|null $AllowCustomerDiscount
* @return \Pimcore\Model\DataObject\Product
*/
public function setAllowCustomerDiscount(?bool $AllowCustomerDiscount)
{
$this->AllowCustomerDiscount = $AllowCustomerDiscount;
return $this;
}
/**
* Get searchKeywords - Search Keywords
* @return string|null
*/
public function getSearchKeywords(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("searchKeywords");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->searchKeywords;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set searchKeywords - Search Keywords
* @param string|null $searchKeywords
* @return \Pimcore\Model\DataObject\Product
*/
public function setSearchKeywords(?string $searchKeywords)
{
$this->searchKeywords = $searchKeywords;
return $this;
}
/**
* Get Ranking - Rangorde
* @return float|null
*/
public function getRanking(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("Ranking");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->Ranking;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set Ranking - Rangorde
* @param float|null $Ranking
* @return \Pimcore\Model\DataObject\Product
*/
public function setRanking(?float $Ranking)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("Ranking");
$this->Ranking = $fd->preSetData($this, $Ranking);
return $this;
}
/**
* Get webText - Webtekst
* @return string|null
*/
public function getWebText(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("webText");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->webText;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set webText - Webtekst
* @param string|null $webText
* @return \Pimcore\Model\DataObject\Product
*/
public function setWebText(?string $webText)
{
$this->webText = $webText;
return $this;
}
/**
* Get price1 - Price1
* @return string|null
*/
public function getPrice1(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("price1");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->price1;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set price1 - Price1
* @param string|null $price1
* @return \Pimcore\Model\DataObject\Product
*/
public function setPrice1(?string $price1)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("price1");
$this->price1 = $fd->preSetData($this, $price1);
return $this;
}
/**
* Get price2 - Price2
* @return string|null
*/
public function getPrice2(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("price2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->price2;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set price2 - Price2
* @param string|null $price2
* @return \Pimcore\Model\DataObject\Product
*/
public function setPrice2(?string $price2)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("price2");
$this->price2 = $fd->preSetData($this, $price2);
return $this;
}
/**
* Get price3 - Price3
* @return string|null
*/
public function getPrice3(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("price3");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->price3;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set price3 - Price3
* @param string|null $price3
* @return \Pimcore\Model\DataObject\Product
*/
public function setPrice3(?string $price3)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("price3");
$this->price3 = $fd->preSetData($this, $price3);
return $this;
}
/**
* Get price4 - Price4
* @return string|null
*/
public function getPrice4(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("price4");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->price4;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set price4 - Price4
* @param string|null $price4
* @return \Pimcore\Model\DataObject\Product
*/
public function setPrice4(?string $price4)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("price4");
$this->price4 = $fd->preSetData($this, $price4);
return $this;
}
/**
* Get vatcode - Vatcode
* @return float|null
*/
public function getVatcode(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("vatcode");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->vatcode;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set vatcode - Vatcode
* @param float|null $vatcode
* @return \Pimcore\Model\DataObject\Product
*/
public function setVatcode(?float $vatcode)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("vatcode");
$this->vatcode = $fd->preSetData($this, $vatcode);
return $this;
}
/**
* Get promoDate1 - Promodate1
* @return \Carbon\Carbon|null
*/
public function getPromoDate1(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("promoDate1");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->promoDate1;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set promoDate1 - Promodate1
* @param \Carbon\Carbon|null $promoDate1
* @return \Pimcore\Model\DataObject\Product
*/
public function setPromoDate1(?\Carbon\Carbon $promoDate1)
{
$this->promoDate1 = $promoDate1;
return $this;
}
/**
* Get promoDate2 - Promo date2
* @return \Carbon\Carbon|null
*/
public function getPromoDate2(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("promoDate2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->promoDate2;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set promoDate2 - Promo date2
* @param \Carbon\Carbon|null $promoDate2
* @return \Pimcore\Model\DataObject\Product
*/
public function setPromoDate2(?\Carbon\Carbon $promoDate2)
{
$this->promoDate2 = $promoDate2;
return $this;
}
/**
* Get promoPercentage - Promo Percentage
* @return float|null
*/
public function getPromoPercentage(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("promoPercentage");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->promoPercentage;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set promoPercentage - Promo Percentage
* @param float|null $promoPercentage
* @return \Pimcore\Model\DataObject\Product
*/
public function setPromoPercentage(?float $promoPercentage)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("promoPercentage");
$this->promoPercentage = $fd->preSetData($this, $promoPercentage);
return $this;
}
/**
* Get promoPrice - Promo Price
* @return float|null
*/
public function getPromoPrice(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("promoPrice");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->promoPrice;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set promoPrice - Promo Price
* @param float|null $promoPrice
* @return \Pimcore\Model\DataObject\Product
*/
public function setPromoPrice(?float $promoPrice)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("promoPrice");
$this->promoPrice = $fd->preSetData($this, $promoPrice);
return $this;
}
}