<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BomSearchRowBasic StructType
 * @subpackage Structs
 */
class BomSearchRowBasic extends SearchRowBasic
{
    /**
     * The availableForAllAssemblies
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $availableForAllAssemblies;
    /**
     * The availableForAllLocations
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $availableForAllLocations;
    /**
     * The createdDate
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDateField[]
     */
    public $createdDate;
    /**
     * The externalId
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $externalId;
    /**
     * The includeChildren
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $includeChildren;
    /**
     * The internalId
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $internalId;
    /**
     * The isInactive
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $isInactive;
    /**
     * The legacyBomForAssembly
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $legacyBomForAssembly;
    /**
     * The memo
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $memo;
    /**
     * The name
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $name;
    /**
     * The restrictToAssemblies
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $restrictToAssemblies;
    /**
     * The restrictToLocations
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $restrictToLocations;
    /**
     * The revisionName
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $revisionName;
    /**
     * The subsidiary
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $subsidiary;
    /**
     * The subsidiaryNoHierarchy
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $subsidiaryNoHierarchy;
    /**
     * The useComponentYield
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $useComponentYield;
    /**
     * The usedOnAssembly
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $usedOnAssembly;
    /**
     * Constructor method for BomSearchRowBasic
     * @uses BomSearchRowBasic::setAvailableForAllAssemblies()
     * @uses BomSearchRowBasic::setAvailableForAllLocations()
     * @uses BomSearchRowBasic::setCreatedDate()
     * @uses BomSearchRowBasic::setExternalId()
     * @uses BomSearchRowBasic::setIncludeChildren()
     * @uses BomSearchRowBasic::setInternalId()
     * @uses BomSearchRowBasic::setIsInactive()
     * @uses BomSearchRowBasic::setLegacyBomForAssembly()
     * @uses BomSearchRowBasic::setMemo()
     * @uses BomSearchRowBasic::setName()
     * @uses BomSearchRowBasic::setRestrictToAssemblies()
     * @uses BomSearchRowBasic::setRestrictToLocations()
     * @uses BomSearchRowBasic::setRevisionName()
     * @uses BomSearchRowBasic::setSubsidiary()
     * @uses BomSearchRowBasic::setSubsidiaryNoHierarchy()
     * @uses BomSearchRowBasic::setUseComponentYield()
     * @uses BomSearchRowBasic::setUsedOnAssembly()
     * @param \StructType\SearchColumnBooleanField[] $availableForAllAssemblies
     * @param \StructType\SearchColumnBooleanField[] $availableForAllLocations
     * @param \StructType\SearchColumnDateField[] $createdDate
     * @param \StructType\SearchColumnSelectField[] $externalId
     * @param \StructType\SearchColumnBooleanField[] $includeChildren
     * @param \StructType\SearchColumnSelectField[] $internalId
     * @param \StructType\SearchColumnBooleanField[] $isInactive
     * @param \StructType\SearchColumnSelectField[] $legacyBomForAssembly
     * @param \StructType\SearchColumnStringField[] $memo
     * @param \StructType\SearchColumnStringField[] $name
     * @param \StructType\SearchColumnSelectField[] $restrictToAssemblies
     * @param \StructType\SearchColumnSelectField[] $restrictToLocations
     * @param \StructType\SearchColumnStringField[] $revisionName
     * @param \StructType\SearchColumnSelectField[] $subsidiary
     * @param \StructType\SearchColumnSelectField[] $subsidiaryNoHierarchy
     * @param \StructType\SearchColumnBooleanField[] $useComponentYield
     * @param \StructType\SearchColumnBooleanField[] $usedOnAssembly
     */
    public function __construct(array $availableForAllAssemblies = array(), array $availableForAllLocations = array(), array $createdDate = array(), array $externalId = array(), array $includeChildren = array(), array $internalId = array(), array $isInactive = array(), array $legacyBomForAssembly = array(), array $memo = array(), array $name = array(), array $restrictToAssemblies = array(), array $restrictToLocations = array(), array $revisionName = array(), array $subsidiary = array(), array $subsidiaryNoHierarchy = array(), array $useComponentYield = array(), array $usedOnAssembly = array())
    {
        $this
            ->setAvailableForAllAssemblies($availableForAllAssemblies)
            ->setAvailableForAllLocations($availableForAllLocations)
            ->setCreatedDate($createdDate)
            ->setExternalId($externalId)
            ->setIncludeChildren($includeChildren)
            ->setInternalId($internalId)
            ->setIsInactive($isInactive)
            ->setLegacyBomForAssembly($legacyBomForAssembly)
            ->setMemo($memo)
            ->setName($name)
            ->setRestrictToAssemblies($restrictToAssemblies)
            ->setRestrictToLocations($restrictToLocations)
            ->setRevisionName($revisionName)
            ->setSubsidiary($subsidiary)
            ->setSubsidiaryNoHierarchy($subsidiaryNoHierarchy)
            ->setUseComponentYield($useComponentYield)
            ->setUsedOnAssembly($usedOnAssembly);
    }
    /**
     * Get availableForAllAssemblies value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getAvailableForAllAssemblies()
    {
        return $this->availableForAllAssemblies;
    }
    /**
     * This method is responsible for validating the values passed to the setAvailableForAllAssemblies method
     * This method is willingly generated in order to preserve the one-line inline validation within the setAvailableForAllAssemblies method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateAvailableForAllAssembliesForArrayConstraintsFromSetAvailableForAllAssemblies(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicAvailableForAllAssembliesItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicAvailableForAllAssembliesItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($bomSearchRowBasicAvailableForAllAssembliesItem) ? get_class($bomSearchRowBasicAvailableForAllAssembliesItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicAvailableForAllAssembliesItem), var_export($bomSearchRowBasicAvailableForAllAssembliesItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The availableForAllAssemblies 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 availableForAllAssemblies value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $availableForAllAssemblies
     * @return \StructType\BomSearchRowBasic
     */
    public function setAvailableForAllAssemblies(array $availableForAllAssemblies = array())
    {
        // validation for constraint: array
        if ('' !== ($availableForAllAssembliesArrayErrorMessage = self::validateAvailableForAllAssembliesForArrayConstraintsFromSetAvailableForAllAssemblies($availableForAllAssemblies))) {
            throw new \InvalidArgumentException($availableForAllAssembliesArrayErrorMessage, __LINE__);
        }
        $this->availableForAllAssemblies = $availableForAllAssemblies;
        return $this;
    }
    /**
     * Add item to availableForAllAssemblies value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToAvailableForAllAssemblies(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The availableForAllAssemblies 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->availableForAllAssemblies[] = $item;
        return $this;
    }
    /**
     * Get availableForAllLocations value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getAvailableForAllLocations()
    {
        return $this->availableForAllLocations;
    }
    /**
     * This method is responsible for validating the values passed to the setAvailableForAllLocations method
     * This method is willingly generated in order to preserve the one-line inline validation within the setAvailableForAllLocations method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateAvailableForAllLocationsForArrayConstraintsFromSetAvailableForAllLocations(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicAvailableForAllLocationsItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicAvailableForAllLocationsItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($bomSearchRowBasicAvailableForAllLocationsItem) ? get_class($bomSearchRowBasicAvailableForAllLocationsItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicAvailableForAllLocationsItem), var_export($bomSearchRowBasicAvailableForAllLocationsItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The availableForAllLocations 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 availableForAllLocations value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $availableForAllLocations
     * @return \StructType\BomSearchRowBasic
     */
    public function setAvailableForAllLocations(array $availableForAllLocations = array())
    {
        // validation for constraint: array
        if ('' !== ($availableForAllLocationsArrayErrorMessage = self::validateAvailableForAllLocationsForArrayConstraintsFromSetAvailableForAllLocations($availableForAllLocations))) {
            throw new \InvalidArgumentException($availableForAllLocationsArrayErrorMessage, __LINE__);
        }
        $this->availableForAllLocations = $availableForAllLocations;
        return $this;
    }
    /**
     * Add item to availableForAllLocations value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToAvailableForAllLocations(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The availableForAllLocations 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->availableForAllLocations[] = $item;
        return $this;
    }
    /**
     * Get createdDate value
     * @return \StructType\SearchColumnDateField[]|null
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }
    /**
     * This method is responsible for validating the values passed to the setCreatedDate method
     * This method is willingly generated in order to preserve the one-line inline validation within the setCreatedDate method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateCreatedDateForArrayConstraintsFromSetCreatedDate(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicCreatedDateItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicCreatedDateItem instanceof \StructType\SearchColumnDateField) {
                $invalidValues[] = is_object($bomSearchRowBasicCreatedDateItem) ? get_class($bomSearchRowBasicCreatedDateItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicCreatedDateItem), var_export($bomSearchRowBasicCreatedDateItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The createdDate property can only contain items of type \StructType\SearchColumnDateField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set createdDate value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDateField[] $createdDate
     * @return \StructType\BomSearchRowBasic
     */
    public function setCreatedDate(array $createdDate = array())
    {
        // validation for constraint: array
        if ('' !== ($createdDateArrayErrorMessage = self::validateCreatedDateForArrayConstraintsFromSetCreatedDate($createdDate))) {
            throw new \InvalidArgumentException($createdDateArrayErrorMessage, __LINE__);
        }
        $this->createdDate = $createdDate;
        return $this;
    }
    /**
     * Add item to createdDate value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDateField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToCreatedDate(\StructType\SearchColumnDateField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDateField) {
            throw new \InvalidArgumentException(sprintf('The createdDate property can only contain items of type \StructType\SearchColumnDateField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->createdDate[] = $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 $bomSearchRowBasicExternalIdItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicExternalIdItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicExternalIdItem) ? get_class($bomSearchRowBasicExternalIdItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicExternalIdItem), var_export($bomSearchRowBasicExternalIdItem, 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\BomSearchRowBasic
     */
    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\BomSearchRowBasic
     */
    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 includeChildren value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getIncludeChildren()
    {
        return $this->includeChildren;
    }
    /**
     * This method is responsible for validating the values passed to the setIncludeChildren method
     * This method is willingly generated in order to preserve the one-line inline validation within the setIncludeChildren method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateIncludeChildrenForArrayConstraintsFromSetIncludeChildren(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicIncludeChildrenItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicIncludeChildrenItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($bomSearchRowBasicIncludeChildrenItem) ? get_class($bomSearchRowBasicIncludeChildrenItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicIncludeChildrenItem), var_export($bomSearchRowBasicIncludeChildrenItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The includeChildren 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 includeChildren value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $includeChildren
     * @return \StructType\BomSearchRowBasic
     */
    public function setIncludeChildren(array $includeChildren = array())
    {
        // validation for constraint: array
        if ('' !== ($includeChildrenArrayErrorMessage = self::validateIncludeChildrenForArrayConstraintsFromSetIncludeChildren($includeChildren))) {
            throw new \InvalidArgumentException($includeChildrenArrayErrorMessage, __LINE__);
        }
        $this->includeChildren = $includeChildren;
        return $this;
    }
    /**
     * Add item to includeChildren value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToIncludeChildren(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The includeChildren 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->includeChildren[] = $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 $bomSearchRowBasicInternalIdItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicInternalIdItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicInternalIdItem) ? get_class($bomSearchRowBasicInternalIdItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicInternalIdItem), var_export($bomSearchRowBasicInternalIdItem, 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\BomSearchRowBasic
     */
    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\BomSearchRowBasic
     */
    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 isInactive value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getIsInactive()
    {
        return $this->isInactive;
    }
    /**
     * This method is responsible for validating the values passed to the setIsInactive method
     * This method is willingly generated in order to preserve the one-line inline validation within the setIsInactive method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateIsInactiveForArrayConstraintsFromSetIsInactive(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicIsInactiveItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicIsInactiveItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($bomSearchRowBasicIsInactiveItem) ? get_class($bomSearchRowBasicIsInactiveItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicIsInactiveItem), var_export($bomSearchRowBasicIsInactiveItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The isInactive 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 isInactive value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $isInactive
     * @return \StructType\BomSearchRowBasic
     */
    public function setIsInactive(array $isInactive = array())
    {
        // validation for constraint: array
        if ('' !== ($isInactiveArrayErrorMessage = self::validateIsInactiveForArrayConstraintsFromSetIsInactive($isInactive))) {
            throw new \InvalidArgumentException($isInactiveArrayErrorMessage, __LINE__);
        }
        $this->isInactive = $isInactive;
        return $this;
    }
    /**
     * Add item to isInactive value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToIsInactive(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The isInactive 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->isInactive[] = $item;
        return $this;
    }
    /**
     * Get legacyBomForAssembly value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getLegacyBomForAssembly()
    {
        return $this->legacyBomForAssembly;
    }
    /**
     * This method is responsible for validating the values passed to the setLegacyBomForAssembly method
     * This method is willingly generated in order to preserve the one-line inline validation within the setLegacyBomForAssembly method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateLegacyBomForAssemblyForArrayConstraintsFromSetLegacyBomForAssembly(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicLegacyBomForAssemblyItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicLegacyBomForAssemblyItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicLegacyBomForAssemblyItem) ? get_class($bomSearchRowBasicLegacyBomForAssemblyItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicLegacyBomForAssemblyItem), var_export($bomSearchRowBasicLegacyBomForAssemblyItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The legacyBomForAssembly 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 legacyBomForAssembly value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $legacyBomForAssembly
     * @return \StructType\BomSearchRowBasic
     */
    public function setLegacyBomForAssembly(array $legacyBomForAssembly = array())
    {
        // validation for constraint: array
        if ('' !== ($legacyBomForAssemblyArrayErrorMessage = self::validateLegacyBomForAssemblyForArrayConstraintsFromSetLegacyBomForAssembly($legacyBomForAssembly))) {
            throw new \InvalidArgumentException($legacyBomForAssemblyArrayErrorMessage, __LINE__);
        }
        $this->legacyBomForAssembly = $legacyBomForAssembly;
        return $this;
    }
    /**
     * Add item to legacyBomForAssembly value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToLegacyBomForAssembly(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The legacyBomForAssembly 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->legacyBomForAssembly[] = $item;
        return $this;
    }
    /**
     * Get memo value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getMemo()
    {
        return $this->memo;
    }
    /**
     * This method is responsible for validating the values passed to the setMemo method
     * This method is willingly generated in order to preserve the one-line inline validation within the setMemo method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateMemoForArrayConstraintsFromSetMemo(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicMemoItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicMemoItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($bomSearchRowBasicMemoItem) ? get_class($bomSearchRowBasicMemoItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicMemoItem), var_export($bomSearchRowBasicMemoItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The memo property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set memo value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $memo
     * @return \StructType\BomSearchRowBasic
     */
    public function setMemo(array $memo = array())
    {
        // validation for constraint: array
        if ('' !== ($memoArrayErrorMessage = self::validateMemoForArrayConstraintsFromSetMemo($memo))) {
            throw new \InvalidArgumentException($memoArrayErrorMessage, __LINE__);
        }
        $this->memo = $memo;
        return $this;
    }
    /**
     * Add item to memo value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToMemo(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The memo property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->memo[] = $item;
        return $this;
    }
    /**
     * Get name value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * This method is responsible for validating the values passed to the setName method
     * This method is willingly generated in order to preserve the one-line inline validation within the setName method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateNameForArrayConstraintsFromSetName(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicNameItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicNameItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($bomSearchRowBasicNameItem) ? get_class($bomSearchRowBasicNameItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicNameItem), var_export($bomSearchRowBasicNameItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The name property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set name value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $name
     * @return \StructType\BomSearchRowBasic
     */
    public function setName(array $name = array())
    {
        // validation for constraint: array
        if ('' !== ($nameArrayErrorMessage = self::validateNameForArrayConstraintsFromSetName($name))) {
            throw new \InvalidArgumentException($nameArrayErrorMessage, __LINE__);
        }
        $this->name = $name;
        return $this;
    }
    /**
     * Add item to name value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToName(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The name property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->name[] = $item;
        return $this;
    }
    /**
     * Get restrictToAssemblies value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getRestrictToAssemblies()
    {
        return $this->restrictToAssemblies;
    }
    /**
     * This method is responsible for validating the values passed to the setRestrictToAssemblies method
     * This method is willingly generated in order to preserve the one-line inline validation within the setRestrictToAssemblies method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateRestrictToAssembliesForArrayConstraintsFromSetRestrictToAssemblies(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicRestrictToAssembliesItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicRestrictToAssembliesItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicRestrictToAssembliesItem) ? get_class($bomSearchRowBasicRestrictToAssembliesItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicRestrictToAssembliesItem), var_export($bomSearchRowBasicRestrictToAssembliesItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The restrictToAssemblies 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 restrictToAssemblies value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $restrictToAssemblies
     * @return \StructType\BomSearchRowBasic
     */
    public function setRestrictToAssemblies(array $restrictToAssemblies = array())
    {
        // validation for constraint: array
        if ('' !== ($restrictToAssembliesArrayErrorMessage = self::validateRestrictToAssembliesForArrayConstraintsFromSetRestrictToAssemblies($restrictToAssemblies))) {
            throw new \InvalidArgumentException($restrictToAssembliesArrayErrorMessage, __LINE__);
        }
        $this->restrictToAssemblies = $restrictToAssemblies;
        return $this;
    }
    /**
     * Add item to restrictToAssemblies value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToRestrictToAssemblies(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The restrictToAssemblies 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->restrictToAssemblies[] = $item;
        return $this;
    }
    /**
     * Get restrictToLocations value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getRestrictToLocations()
    {
        return $this->restrictToLocations;
    }
    /**
     * This method is responsible for validating the values passed to the setRestrictToLocations method
     * This method is willingly generated in order to preserve the one-line inline validation within the setRestrictToLocations method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateRestrictToLocationsForArrayConstraintsFromSetRestrictToLocations(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicRestrictToLocationsItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicRestrictToLocationsItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicRestrictToLocationsItem) ? get_class($bomSearchRowBasicRestrictToLocationsItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicRestrictToLocationsItem), var_export($bomSearchRowBasicRestrictToLocationsItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The restrictToLocations 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 restrictToLocations value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $restrictToLocations
     * @return \StructType\BomSearchRowBasic
     */
    public function setRestrictToLocations(array $restrictToLocations = array())
    {
        // validation for constraint: array
        if ('' !== ($restrictToLocationsArrayErrorMessage = self::validateRestrictToLocationsForArrayConstraintsFromSetRestrictToLocations($restrictToLocations))) {
            throw new \InvalidArgumentException($restrictToLocationsArrayErrorMessage, __LINE__);
        }
        $this->restrictToLocations = $restrictToLocations;
        return $this;
    }
    /**
     * Add item to restrictToLocations value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToRestrictToLocations(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The restrictToLocations 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->restrictToLocations[] = $item;
        return $this;
    }
    /**
     * Get revisionName value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getRevisionName()
    {
        return $this->revisionName;
    }
    /**
     * This method is responsible for validating the values passed to the setRevisionName method
     * This method is willingly generated in order to preserve the one-line inline validation within the setRevisionName method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateRevisionNameForArrayConstraintsFromSetRevisionName(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicRevisionNameItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicRevisionNameItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($bomSearchRowBasicRevisionNameItem) ? get_class($bomSearchRowBasicRevisionNameItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicRevisionNameItem), var_export($bomSearchRowBasicRevisionNameItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The revisionName property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set revisionName value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $revisionName
     * @return \StructType\BomSearchRowBasic
     */
    public function setRevisionName(array $revisionName = array())
    {
        // validation for constraint: array
        if ('' !== ($revisionNameArrayErrorMessage = self::validateRevisionNameForArrayConstraintsFromSetRevisionName($revisionName))) {
            throw new \InvalidArgumentException($revisionNameArrayErrorMessage, __LINE__);
        }
        $this->revisionName = $revisionName;
        return $this;
    }
    /**
     * Add item to revisionName value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToRevisionName(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The revisionName property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->revisionName[] = $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 $bomSearchRowBasicSubsidiaryItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicSubsidiaryItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicSubsidiaryItem) ? get_class($bomSearchRowBasicSubsidiaryItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicSubsidiaryItem), var_export($bomSearchRowBasicSubsidiaryItem, 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\BomSearchRowBasic
     */
    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\BomSearchRowBasic
     */
    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 subsidiaryNoHierarchy value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getSubsidiaryNoHierarchy()
    {
        return $this->subsidiaryNoHierarchy;
    }
    /**
     * This method is responsible for validating the values passed to the setSubsidiaryNoHierarchy method
     * This method is willingly generated in order to preserve the one-line inline validation within the setSubsidiaryNoHierarchy method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateSubsidiaryNoHierarchyForArrayConstraintsFromSetSubsidiaryNoHierarchy(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicSubsidiaryNoHierarchyItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicSubsidiaryNoHierarchyItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($bomSearchRowBasicSubsidiaryNoHierarchyItem) ? get_class($bomSearchRowBasicSubsidiaryNoHierarchyItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicSubsidiaryNoHierarchyItem), var_export($bomSearchRowBasicSubsidiaryNoHierarchyItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The subsidiaryNoHierarchy 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 subsidiaryNoHierarchy value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $subsidiaryNoHierarchy
     * @return \StructType\BomSearchRowBasic
     */
    public function setSubsidiaryNoHierarchy(array $subsidiaryNoHierarchy = array())
    {
        // validation for constraint: array
        if ('' !== ($subsidiaryNoHierarchyArrayErrorMessage = self::validateSubsidiaryNoHierarchyForArrayConstraintsFromSetSubsidiaryNoHierarchy($subsidiaryNoHierarchy))) {
            throw new \InvalidArgumentException($subsidiaryNoHierarchyArrayErrorMessage, __LINE__);
        }
        $this->subsidiaryNoHierarchy = $subsidiaryNoHierarchy;
        return $this;
    }
    /**
     * Add item to subsidiaryNoHierarchy value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToSubsidiaryNoHierarchy(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The subsidiaryNoHierarchy 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->subsidiaryNoHierarchy[] = $item;
        return $this;
    }
    /**
     * Get useComponentYield value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getUseComponentYield()
    {
        return $this->useComponentYield;
    }
    /**
     * This method is responsible for validating the values passed to the setUseComponentYield method
     * This method is willingly generated in order to preserve the one-line inline validation within the setUseComponentYield method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateUseComponentYieldForArrayConstraintsFromSetUseComponentYield(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicUseComponentYieldItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicUseComponentYieldItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($bomSearchRowBasicUseComponentYieldItem) ? get_class($bomSearchRowBasicUseComponentYieldItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicUseComponentYieldItem), var_export($bomSearchRowBasicUseComponentYieldItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The useComponentYield 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 useComponentYield value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $useComponentYield
     * @return \StructType\BomSearchRowBasic
     */
    public function setUseComponentYield(array $useComponentYield = array())
    {
        // validation for constraint: array
        if ('' !== ($useComponentYieldArrayErrorMessage = self::validateUseComponentYieldForArrayConstraintsFromSetUseComponentYield($useComponentYield))) {
            throw new \InvalidArgumentException($useComponentYieldArrayErrorMessage, __LINE__);
        }
        $this->useComponentYield = $useComponentYield;
        return $this;
    }
    /**
     * Add item to useComponentYield value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToUseComponentYield(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The useComponentYield 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->useComponentYield[] = $item;
        return $this;
    }
    /**
     * Get usedOnAssembly value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getUsedOnAssembly()
    {
        return $this->usedOnAssembly;
    }
    /**
     * This method is responsible for validating the values passed to the setUsedOnAssembly method
     * This method is willingly generated in order to preserve the one-line inline validation within the setUsedOnAssembly method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateUsedOnAssemblyForArrayConstraintsFromSetUsedOnAssembly(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $bomSearchRowBasicUsedOnAssemblyItem) {
            // validation for constraint: itemType
            if (!$bomSearchRowBasicUsedOnAssemblyItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($bomSearchRowBasicUsedOnAssemblyItem) ? get_class($bomSearchRowBasicUsedOnAssemblyItem) : sprintf('%s(%s)', gettype($bomSearchRowBasicUsedOnAssemblyItem), var_export($bomSearchRowBasicUsedOnAssemblyItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The usedOnAssembly 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 usedOnAssembly value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $usedOnAssembly
     * @return \StructType\BomSearchRowBasic
     */
    public function setUsedOnAssembly(array $usedOnAssembly = array())
    {
        // validation for constraint: array
        if ('' !== ($usedOnAssemblyArrayErrorMessage = self::validateUsedOnAssemblyForArrayConstraintsFromSetUsedOnAssembly($usedOnAssembly))) {
            throw new \InvalidArgumentException($usedOnAssemblyArrayErrorMessage, __LINE__);
        }
        $this->usedOnAssembly = $usedOnAssembly;
        return $this;
    }
    /**
     * Add item to usedOnAssembly value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\BomSearchRowBasic
     */
    public function addToUsedOnAssembly(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The usedOnAssembly 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->usedOnAssembly[] = $item;
        return $this;
    }
}
