<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for VendorSubsidiaryRelationshipSearchRowBasic StructType
 * @subpackage Structs
 */
class VendorSubsidiaryRelationshipSearchRowBasic extends SearchRowBasic
{
    /**
     * The balance
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $balance;
    /**
     * The balancebase
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $balancebase;
    /**
     * The baseCurrency
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $baseCurrency;
    /**
     * The creditlimit
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $creditlimit;
    /**
     * The entity
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $entity;
    /**
     * The externalId
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $externalId;
    /**
     * The internalId
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $internalId;
    /**
     * The inTransitBalance
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $inTransitBalance;
    /**
     * The inTransitBalanceBase
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $inTransitBalanceBase;
    /**
     * The isprimarysub
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $isprimarysub;
    /**
     * The primaryCurrency
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $primaryCurrency;
    /**
     * The subsidiary
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $subsidiary;
    /**
     * The taxitem
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $taxitem;
    /**
     * The unbilledorders
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $unbilledorders;
    /**
     * The unbilledordersbase
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDoubleField[]
     */
    public $unbilledordersbase;
    /**
     * The customFieldList
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\SearchColumnCustomFieldList
     */
    public $customFieldList;
    /**
     * Constructor method for VendorSubsidiaryRelationshipSearchRowBasic
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setBalance()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setBalancebase()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setBaseCurrency()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setCreditlimit()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setEntity()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setExternalId()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setInternalId()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setInTransitBalance()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setInTransitBalanceBase()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setIsprimarysub()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setPrimaryCurrency()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setSubsidiary()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setTaxitem()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setUnbilledorders()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setUnbilledordersbase()
     * @uses VendorSubsidiaryRelationshipSearchRowBasic::setCustomFieldList()
     * @param \StructType\SearchColumnDoubleField[] $balance
     * @param \StructType\SearchColumnDoubleField[] $balancebase
     * @param \StructType\SearchColumnSelectField[] $baseCurrency
     * @param \StructType\SearchColumnDoubleField[] $creditlimit
     * @param \StructType\SearchColumnSelectField[] $entity
     * @param \StructType\SearchColumnSelectField[] $externalId
     * @param \StructType\SearchColumnSelectField[] $internalId
     * @param \StructType\SearchColumnDoubleField[] $inTransitBalance
     * @param \StructType\SearchColumnDoubleField[] $inTransitBalanceBase
     * @param \StructType\SearchColumnBooleanField[] $isprimarysub
     * @param \StructType\SearchColumnSelectField[] $primaryCurrency
     * @param \StructType\SearchColumnSelectField[] $subsidiary
     * @param \StructType\SearchColumnSelectField[] $taxitem
     * @param \StructType\SearchColumnDoubleField[] $unbilledorders
     * @param \StructType\SearchColumnDoubleField[] $unbilledordersbase
     * @param \StructType\SearchColumnCustomFieldList $customFieldList
     */
    public function __construct(array $balance = array(), array $balancebase = array(), array $baseCurrency = array(), array $creditlimit = array(), array $entity = array(), array $externalId = array(), array $internalId = array(), array $inTransitBalance = array(), array $inTransitBalanceBase = array(), array $isprimarysub = array(), array $primaryCurrency = array(), array $subsidiary = array(), array $taxitem = array(), array $unbilledorders = array(), array $unbilledordersbase = array(), \StructType\SearchColumnCustomFieldList $customFieldList = null)
    {
        $this
            ->setBalance($balance)
            ->setBalancebase($balancebase)
            ->setBaseCurrency($baseCurrency)
            ->setCreditlimit($creditlimit)
            ->setEntity($entity)
            ->setExternalId($externalId)
            ->setInternalId($internalId)
            ->setInTransitBalance($inTransitBalance)
            ->setInTransitBalanceBase($inTransitBalanceBase)
            ->setIsprimarysub($isprimarysub)
            ->setPrimaryCurrency($primaryCurrency)
            ->setSubsidiary($subsidiary)
            ->setTaxitem($taxitem)
            ->setUnbilledorders($unbilledorders)
            ->setUnbilledordersbase($unbilledordersbase)
            ->setCustomFieldList($customFieldList);
    }
    /**
     * Get balance value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getBalance()
    {
        return $this->balance;
    }
    /**
     * This method is responsible for validating the values passed to the setBalance method
     * This method is willingly generated in order to preserve the one-line inline validation within the setBalance method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateBalanceForArrayConstraintsFromSetBalance(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicBalanceItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicBalanceItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicBalanceItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicBalanceItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicBalanceItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicBalanceItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The balance property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set balance value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $balance
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setBalance(array $balance = array())
    {
        // validation for constraint: array
        if ('' !== ($balanceArrayErrorMessage = self::validateBalanceForArrayConstraintsFromSetBalance($balance))) {
            throw new \InvalidArgumentException($balanceArrayErrorMessage, __LINE__);
        }
        $this->balance = $balance;
        return $this;
    }
    /**
     * Add item to balance value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToBalance(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The balance property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->balance[] = $item;
        return $this;
    }
    /**
     * Get balancebase value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getBalancebase()
    {
        return $this->balancebase;
    }
    /**
     * This method is responsible for validating the values passed to the setBalancebase method
     * This method is willingly generated in order to preserve the one-line inline validation within the setBalancebase method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateBalancebaseForArrayConstraintsFromSetBalancebase(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicBalancebaseItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicBalancebaseItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicBalancebaseItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicBalancebaseItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicBalancebaseItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicBalancebaseItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The balancebase property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set balancebase value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $balancebase
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setBalancebase(array $balancebase = array())
    {
        // validation for constraint: array
        if ('' !== ($balancebaseArrayErrorMessage = self::validateBalancebaseForArrayConstraintsFromSetBalancebase($balancebase))) {
            throw new \InvalidArgumentException($balancebaseArrayErrorMessage, __LINE__);
        }
        $this->balancebase = $balancebase;
        return $this;
    }
    /**
     * Add item to balancebase value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToBalancebase(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The balancebase property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->balancebase[] = $item;
        return $this;
    }
    /**
     * Get baseCurrency value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getBaseCurrency()
    {
        return $this->baseCurrency;
    }
    /**
     * This method is responsible for validating the values passed to the setBaseCurrency method
     * This method is willingly generated in order to preserve the one-line inline validation within the setBaseCurrency method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateBaseCurrencyForArrayConstraintsFromSetBaseCurrency(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicBaseCurrencyItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicBaseCurrencyItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicBaseCurrencyItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicBaseCurrencyItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicBaseCurrencyItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicBaseCurrencyItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The baseCurrency property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set baseCurrency value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $baseCurrency
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setBaseCurrency(array $baseCurrency = array())
    {
        // validation for constraint: array
        if ('' !== ($baseCurrencyArrayErrorMessage = self::validateBaseCurrencyForArrayConstraintsFromSetBaseCurrency($baseCurrency))) {
            throw new \InvalidArgumentException($baseCurrencyArrayErrorMessage, __LINE__);
        }
        $this->baseCurrency = $baseCurrency;
        return $this;
    }
    /**
     * Add item to baseCurrency value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToBaseCurrency(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The baseCurrency property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->baseCurrency[] = $item;
        return $this;
    }
    /**
     * Get creditlimit value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getCreditlimit()
    {
        return $this->creditlimit;
    }
    /**
     * This method is responsible for validating the values passed to the setCreditlimit method
     * This method is willingly generated in order to preserve the one-line inline validation within the setCreditlimit method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateCreditlimitForArrayConstraintsFromSetCreditlimit(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicCreditlimitItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicCreditlimitItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicCreditlimitItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicCreditlimitItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicCreditlimitItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicCreditlimitItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The creditlimit property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set creditlimit value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $creditlimit
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setCreditlimit(array $creditlimit = array())
    {
        // validation for constraint: array
        if ('' !== ($creditlimitArrayErrorMessage = self::validateCreditlimitForArrayConstraintsFromSetCreditlimit($creditlimit))) {
            throw new \InvalidArgumentException($creditlimitArrayErrorMessage, __LINE__);
        }
        $this->creditlimit = $creditlimit;
        return $this;
    }
    /**
     * Add item to creditlimit value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToCreditlimit(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The creditlimit property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->creditlimit[] = $item;
        return $this;
    }
    /**
     * Get entity value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getEntity()
    {
        return $this->entity;
    }
    /**
     * This method is responsible for validating the values passed to the setEntity method
     * This method is willingly generated in order to preserve the one-line inline validation within the setEntity method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateEntityForArrayConstraintsFromSetEntity(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicEntityItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicEntityItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicEntityItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicEntityItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicEntityItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicEntityItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The entity property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set entity value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $entity
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setEntity(array $entity = array())
    {
        // validation for constraint: array
        if ('' !== ($entityArrayErrorMessage = self::validateEntityForArrayConstraintsFromSetEntity($entity))) {
            throw new \InvalidArgumentException($entityArrayErrorMessage, __LINE__);
        }
        $this->entity = $entity;
        return $this;
    }
    /**
     * Add item to entity value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToEntity(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The entity property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->entity[] = $item;
        return $this;
    }
    /**
     * Get externalId value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getExternalId()
    {
        return $this->externalId;
    }
    /**
     * This method is responsible for validating the values passed to the setExternalId method
     * This method is willingly generated in order to preserve the one-line inline validation within the setExternalId method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateExternalIdForArrayConstraintsFromSetExternalId(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicExternalIdItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicExternalIdItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicExternalIdItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicExternalIdItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicExternalIdItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicExternalIdItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The externalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set externalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $externalId
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setExternalId(array $externalId = array())
    {
        // validation for constraint: array
        if ('' !== ($externalIdArrayErrorMessage = self::validateExternalIdForArrayConstraintsFromSetExternalId($externalId))) {
            throw new \InvalidArgumentException($externalIdArrayErrorMessage, __LINE__);
        }
        $this->externalId = $externalId;
        return $this;
    }
    /**
     * Add item to externalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToExternalId(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The externalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->externalId[] = $item;
        return $this;
    }
    /**
     * Get internalId value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getInternalId()
    {
        return $this->internalId;
    }
    /**
     * This method is responsible for validating the values passed to the setInternalId method
     * This method is willingly generated in order to preserve the one-line inline validation within the setInternalId method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateInternalIdForArrayConstraintsFromSetInternalId(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicInternalIdItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicInternalIdItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicInternalIdItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicInternalIdItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicInternalIdItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicInternalIdItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The internalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set internalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $internalId
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setInternalId(array $internalId = array())
    {
        // validation for constraint: array
        if ('' !== ($internalIdArrayErrorMessage = self::validateInternalIdForArrayConstraintsFromSetInternalId($internalId))) {
            throw new \InvalidArgumentException($internalIdArrayErrorMessage, __LINE__);
        }
        $this->internalId = $internalId;
        return $this;
    }
    /**
     * Add item to internalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToInternalId(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The internalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->internalId[] = $item;
        return $this;
    }
    /**
     * Get inTransitBalance value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getInTransitBalance()
    {
        return $this->inTransitBalance;
    }
    /**
     * This method is responsible for validating the values passed to the setInTransitBalance method
     * This method is willingly generated in order to preserve the one-line inline validation within the setInTransitBalance method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateInTransitBalanceForArrayConstraintsFromSetInTransitBalance(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The inTransitBalance property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set inTransitBalance value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $inTransitBalance
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setInTransitBalance(array $inTransitBalance = array())
    {
        // validation for constraint: array
        if ('' !== ($inTransitBalanceArrayErrorMessage = self::validateInTransitBalanceForArrayConstraintsFromSetInTransitBalance($inTransitBalance))) {
            throw new \InvalidArgumentException($inTransitBalanceArrayErrorMessage, __LINE__);
        }
        $this->inTransitBalance = $inTransitBalance;
        return $this;
    }
    /**
     * Add item to inTransitBalance value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToInTransitBalance(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The inTransitBalance property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->inTransitBalance[] = $item;
        return $this;
    }
    /**
     * Get inTransitBalanceBase value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getInTransitBalanceBase()
    {
        return $this->inTransitBalanceBase;
    }
    /**
     * This method is responsible for validating the values passed to the setInTransitBalanceBase method
     * This method is willingly generated in order to preserve the one-line inline validation within the setInTransitBalanceBase method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateInTransitBalanceBaseForArrayConstraintsFromSetInTransitBalanceBase(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceBaseItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceBaseItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceBaseItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceBaseItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceBaseItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicInTransitBalanceBaseItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The inTransitBalanceBase property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set inTransitBalanceBase value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $inTransitBalanceBase
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setInTransitBalanceBase(array $inTransitBalanceBase = array())
    {
        // validation for constraint: array
        if ('' !== ($inTransitBalanceBaseArrayErrorMessage = self::validateInTransitBalanceBaseForArrayConstraintsFromSetInTransitBalanceBase($inTransitBalanceBase))) {
            throw new \InvalidArgumentException($inTransitBalanceBaseArrayErrorMessage, __LINE__);
        }
        $this->inTransitBalanceBase = $inTransitBalanceBase;
        return $this;
    }
    /**
     * Add item to inTransitBalanceBase value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToInTransitBalanceBase(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The inTransitBalanceBase property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->inTransitBalanceBase[] = $item;
        return $this;
    }
    /**
     * Get isprimarysub value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getIsprimarysub()
    {
        return $this->isprimarysub;
    }
    /**
     * This method is responsible for validating the values passed to the setIsprimarysub method
     * This method is willingly generated in order to preserve the one-line inline validation within the setIsprimarysub method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateIsprimarysubForArrayConstraintsFromSetIsprimarysub(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicIsprimarysubItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicIsprimarysubItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicIsprimarysubItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicIsprimarysubItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicIsprimarysubItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicIsprimarysubItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The isprimarysub property can only contain items of type \StructType\SearchColumnBooleanField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set isprimarysub value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $isprimarysub
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setIsprimarysub(array $isprimarysub = array())
    {
        // validation for constraint: array
        if ('' !== ($isprimarysubArrayErrorMessage = self::validateIsprimarysubForArrayConstraintsFromSetIsprimarysub($isprimarysub))) {
            throw new \InvalidArgumentException($isprimarysubArrayErrorMessage, __LINE__);
        }
        $this->isprimarysub = $isprimarysub;
        return $this;
    }
    /**
     * Add item to isprimarysub value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToIsprimarysub(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The isprimarysub property can only contain items of type \StructType\SearchColumnBooleanField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->isprimarysub[] = $item;
        return $this;
    }
    /**
     * Get primaryCurrency value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getPrimaryCurrency()
    {
        return $this->primaryCurrency;
    }
    /**
     * This method is responsible for validating the values passed to the setPrimaryCurrency method
     * This method is willingly generated in order to preserve the one-line inline validation within the setPrimaryCurrency method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validatePrimaryCurrencyForArrayConstraintsFromSetPrimaryCurrency(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicPrimaryCurrencyItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicPrimaryCurrencyItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicPrimaryCurrencyItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicPrimaryCurrencyItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicPrimaryCurrencyItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicPrimaryCurrencyItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The primaryCurrency property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set primaryCurrency value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $primaryCurrency
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setPrimaryCurrency(array $primaryCurrency = array())
    {
        // validation for constraint: array
        if ('' !== ($primaryCurrencyArrayErrorMessage = self::validatePrimaryCurrencyForArrayConstraintsFromSetPrimaryCurrency($primaryCurrency))) {
            throw new \InvalidArgumentException($primaryCurrencyArrayErrorMessage, __LINE__);
        }
        $this->primaryCurrency = $primaryCurrency;
        return $this;
    }
    /**
     * Add item to primaryCurrency value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToPrimaryCurrency(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The primaryCurrency property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->primaryCurrency[] = $item;
        return $this;
    }
    /**
     * Get subsidiary value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getSubsidiary()
    {
        return $this->subsidiary;
    }
    /**
     * This method is responsible for validating the values passed to the setSubsidiary method
     * This method is willingly generated in order to preserve the one-line inline validation within the setSubsidiary method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateSubsidiaryForArrayConstraintsFromSetSubsidiary(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicSubsidiaryItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicSubsidiaryItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicSubsidiaryItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicSubsidiaryItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicSubsidiaryItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicSubsidiaryItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The subsidiary property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set subsidiary value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $subsidiary
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setSubsidiary(array $subsidiary = array())
    {
        // validation for constraint: array
        if ('' !== ($subsidiaryArrayErrorMessage = self::validateSubsidiaryForArrayConstraintsFromSetSubsidiary($subsidiary))) {
            throw new \InvalidArgumentException($subsidiaryArrayErrorMessage, __LINE__);
        }
        $this->subsidiary = $subsidiary;
        return $this;
    }
    /**
     * Add item to subsidiary value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToSubsidiary(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The subsidiary property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->subsidiary[] = $item;
        return $this;
    }
    /**
     * Get taxitem value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getTaxitem()
    {
        return $this->taxitem;
    }
    /**
     * This method is responsible for validating the values passed to the setTaxitem method
     * This method is willingly generated in order to preserve the one-line inline validation within the setTaxitem method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateTaxitemForArrayConstraintsFromSetTaxitem(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicTaxitemItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicTaxitemItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicTaxitemItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicTaxitemItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicTaxitemItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicTaxitemItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The taxitem property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set taxitem value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $taxitem
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setTaxitem(array $taxitem = array())
    {
        // validation for constraint: array
        if ('' !== ($taxitemArrayErrorMessage = self::validateTaxitemForArrayConstraintsFromSetTaxitem($taxitem))) {
            throw new \InvalidArgumentException($taxitemArrayErrorMessage, __LINE__);
        }
        $this->taxitem = $taxitem;
        return $this;
    }
    /**
     * Add item to taxitem value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToTaxitem(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The taxitem property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->taxitem[] = $item;
        return $this;
    }
    /**
     * Get unbilledorders value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getUnbilledorders()
    {
        return $this->unbilledorders;
    }
    /**
     * This method is responsible for validating the values passed to the setUnbilledorders method
     * This method is willingly generated in order to preserve the one-line inline validation within the setUnbilledorders method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateUnbilledordersForArrayConstraintsFromSetUnbilledorders(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The unbilledorders property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set unbilledorders value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $unbilledorders
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setUnbilledorders(array $unbilledorders = array())
    {
        // validation for constraint: array
        if ('' !== ($unbilledordersArrayErrorMessage = self::validateUnbilledordersForArrayConstraintsFromSetUnbilledorders($unbilledorders))) {
            throw new \InvalidArgumentException($unbilledordersArrayErrorMessage, __LINE__);
        }
        $this->unbilledorders = $unbilledorders;
        return $this;
    }
    /**
     * Add item to unbilledorders value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToUnbilledorders(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The unbilledorders property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->unbilledorders[] = $item;
        return $this;
    }
    /**
     * Get unbilledordersbase value
     * @return \StructType\SearchColumnDoubleField[]|null
     */
    public function getUnbilledordersbase()
    {
        return $this->unbilledordersbase;
    }
    /**
     * This method is responsible for validating the values passed to the setUnbilledordersbase method
     * This method is willingly generated in order to preserve the one-line inline validation within the setUnbilledordersbase method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateUnbilledordersbaseForArrayConstraintsFromSetUnbilledordersbase(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersbaseItem) {
            // validation for constraint: itemType
            if (!$vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersbaseItem instanceof \StructType\SearchColumnDoubleField) {
                $invalidValues[] = is_object($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersbaseItem) ? get_class($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersbaseItem) : sprintf('%s(%s)', gettype($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersbaseItem), var_export($vendorSubsidiaryRelationshipSearchRowBasicUnbilledordersbaseItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The unbilledordersbase property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set unbilledordersbase value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField[] $unbilledordersbase
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setUnbilledordersbase(array $unbilledordersbase = array())
    {
        // validation for constraint: array
        if ('' !== ($unbilledordersbaseArrayErrorMessage = self::validateUnbilledordersbaseForArrayConstraintsFromSetUnbilledordersbase($unbilledordersbase))) {
            throw new \InvalidArgumentException($unbilledordersbaseArrayErrorMessage, __LINE__);
        }
        $this->unbilledordersbase = $unbilledordersbase;
        return $this;
    }
    /**
     * Add item to unbilledordersbase value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDoubleField $item
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function addToUnbilledordersbase(\StructType\SearchColumnDoubleField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDoubleField) {
            throw new \InvalidArgumentException(sprintf('The unbilledordersbase property can only contain items of type \StructType\SearchColumnDoubleField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->unbilledordersbase[] = $item;
        return $this;
    }
    /**
     * Get customFieldList value
     * @return \StructType\SearchColumnCustomFieldList|null
     */
    public function getCustomFieldList()
    {
        return $this->customFieldList;
    }
    /**
     * Set customFieldList value
     * @param \StructType\SearchColumnCustomFieldList $customFieldList
     * @return \StructType\VendorSubsidiaryRelationshipSearchRowBasic
     */
    public function setCustomFieldList(\StructType\SearchColumnCustomFieldList $customFieldList = null)
    {
        $this->customFieldList = $customFieldList;
        return $this;
    }
}
