<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for moveShipments StructType
 * @subpackage Structs
 */
class MoveShipments extends AbstractStructBase
{
    /**
     * The idBuforFrom
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $idBuforFrom;
    /**
     * The idBuforTo
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $idBuforTo;
    /**
     * The guid
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - length: 32
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * - whiteSpace: collapse
     * @var string[]
     */
    public $guid;
    /**
     * Constructor method for moveShipments
     * @uses MoveShipments::setIdBuforFrom()
     * @uses MoveShipments::setIdBuforTo()
     * @uses MoveShipments::setGuid()
     * @param int $idBuforFrom
     * @param int $idBuforTo
     * @param string[] $guid
     */
    public function __construct($idBuforFrom = null, $idBuforTo = null, array $guid = array())
    {
        $this
            -&gt;setIdBuforFrom($idBuforFrom)
            -&gt;setIdBuforTo($idBuforTo)
            -&gt;setGuid($guid);
    }
    /**
     * Get idBuforFrom value
     * @return int
     */
    public function getIdBuforFrom()
    {
        return $this-&gt;idBuforFrom;
    }
    /**
     * Set idBuforFrom value
     * @param int $idBuforFrom
     * @return MoveShipments
     */
    public function setIdBuforFrom($idBuforFrom = null)
    {
        // validation for constraint: int
        if (!is_null($idBuforFrom) &amp;&amp; !(is_int($idBuforFrom) || ctype_digit($idBuforFrom))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($idBuforFrom, true), gettype($idBuforFrom)), __LINE__);
        }
        $this-&gt;idBuforFrom = $idBuforFrom;
        return $this;
    }
    /**
     * Get idBuforTo value
     * @return int
     */
    public function getIdBuforTo()
    {
        return $this-&gt;idBuforTo;
    }
    /**
     * Set idBuforTo value
     * @param int $idBuforTo
     * @return MoveShipments
     */
    public function setIdBuforTo($idBuforTo = null)
    {
        // validation for constraint: int
        if (!is_null($idBuforTo) &amp;&amp; !(is_int($idBuforTo) || ctype_digit($idBuforTo))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($idBuforTo, true), gettype($idBuforTo)), __LINE__);
        }
        $this-&gt;idBuforTo = $idBuforTo;
        return $this;
    }
    /**
     * Get guid value
     * @return string[]
     */
    public function getGuid()
    {
        return $this-&gt;guid;
    }
    /**
     * This method is responsible for validating the values passed to the setGuid method
     * This method is willingly generated in order to preserve the one-line inline validation within the setGuid method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateGuidForArrayConstraintsFromSetGuid(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $moveShipmentsGuidItem) {
            // validation for constraint: itemType
            if (!is_string($moveShipmentsGuidItem)) {
                $invalidValues[] = is_object($moveShipmentsGuidItem) ? get_class($moveShipmentsGuidItem) : sprintf('%s(%s)', gettype($moveShipmentsGuidItem), var_export($moveShipmentsGuidItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The guid property can only contain items of type string, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * This method is responsible for validating the value passed to the setGuid method
     * This method is willingly generated in order to preserve the one-line inline validation within the setGuid method
     * This has to validate that the items contained by the array match the length constraint
     * @param mixed $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateGuidForLengthConstraintFromSetGuid($values)
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $moveShipmentsGuidItem) {
            // validation for constraint: length(32)
            if (mb_strlen($moveShipmentsGuidItem) !== 32) {
                $invalidValues[] = var_export($moveShipmentsGuidItem, true);
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('Invalid length for value(s) %s, the number of characters/octets contained by the literal must be equal to 32', implode(', ', $invalidValues));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set guid value
     * @throws \InvalidArgumentException
     * @param string[] $guid
     * @return MoveShipments
     */
    public function setGuid(array $guid = array())
    {
        // validation for constraint: array
        if ('' !== ($guidArrayErrorMessage = self::validateGuidForArrayConstraintsFromSetGuid($guid))) {
            throw new \InvalidArgumentException($guidArrayErrorMessage, __LINE__);
        }
        // validation for constraint: length(32)
        if ('' !== ($guidLengthErrorMessage = self::validateGuidForLengthConstraintFromSetGuid($guid))) {
            throw new \InvalidArgumentException($guidLengthErrorMessage, __LINE__);
        }
        $this-&gt;guid = $guid;
        return $this;
    }
    /**
     * Add item to guid value
     * @throws \InvalidArgumentException
     * @param string $item
     * @return MoveShipments
     */
    public function addToGuid($item)
    {
        // validation for constraint: itemType
        if (!is_string($item)) {
            throw new \InvalidArgumentException(sprintf('The guid property can only contain items of type string, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        // validation for constraint: length(32)
        if (mb_strlen($item) !== 32) {
            throw new \InvalidArgumentException(sprintf('Invalid length of %s, the number of characters/octets contained by the literal must be equal to 32', mb_strlen($item)), __LINE__);
        }
        $this-&gt;guid[] = $item;
        return $this;
    }
}
</pre></body></html>