<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - taxEntryCombinationType [select]
* - taxEntries [fieldcollections]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\OnlineShopTaxClass\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\OnlineShopTaxClass\Listing|\Pimcore\Model\DataObject\OnlineShopTaxClass|null getByTaxEntryCombinationType($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class OnlineShopTaxClass extends Concrete
{
protected $o_classId = "EF_OSTC";
protected $o_className = "OnlineShopTaxClass";
protected $taxEntryCombinationType;
protected $taxEntries;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\OnlineShopTaxClass
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get taxEntryCombinationType - Tax Entry Combination Type
* @return string|null
*/
public function getTaxEntryCombinationType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("taxEntryCombinationType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->taxEntryCombinationType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set taxEntryCombinationType - Tax Entry Combination Type
* @param string|null $taxEntryCombinationType
* @return \Pimcore\Model\DataObject\OnlineShopTaxClass
*/
public function setTaxEntryCombinationType(?string $taxEntryCombinationType)
{
$this->taxEntryCombinationType = $taxEntryCombinationType;
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getTaxEntries()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("taxEntries");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("taxEntries")->preGetData($this);
return $data;
}
/**
* Set taxEntries - Tax Entries
* @param \Pimcore\Model\DataObject\Fieldcollection|null $taxEntries
* @return \Pimcore\Model\DataObject\OnlineShopTaxClass
*/
public function setTaxEntries(?\Pimcore\Model\DataObject\Fieldcollection $taxEntries)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("taxEntries");
$this->taxEntries = $fd->preSetData($this, $taxEntries);
return $this;
}
}