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

namespace TaxyTrack\TaxyTrackStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for READResponse TaxyTrackStruct
 * @package TaxyTrack
 * @subpackage Structs
 */
class TaxyTrackREADResponse extends AbstractStructBase
{
    /**
     * The st_flag
     * @var int
     */
    public $st_flag;
    /**
     * The st_title
     * @var string
     */
    public $st_title;
    /**
     * The pod_date
     * @var string
     */
    public $pod_date;
    /**
     * The pod_time
     * @var string
     */
    public $pod_time;
    /**
     * The pod_name
     * @var string
     */
    public $pod_name;
    /**
     * The tt_rec
     * Meta information extracted from the WSDL
     * - maxOccurs: 50
     * - minOccurs: 0
     * @var \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec[]
     */
    public $tt_rec;
    /**
     * Constructor method for READResponse
     * @uses TaxyTrackREADResponse::setSt_flag()
     * @uses TaxyTrackREADResponse::setSt_title()
     * @uses TaxyTrackREADResponse::setPod_date()
     * @uses TaxyTrackREADResponse::setPod_time()
     * @uses TaxyTrackREADResponse::setPod_name()
     * @uses TaxyTrackREADResponse::setTt_rec()
     * @param int $st_flag
     * @param string $st_title
     * @param string $pod_date
     * @param string $pod_time
     * @param string $pod_name
     * @param \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec[] $tt_rec
     */
    public function __construct($st_flag = null, $st_title = null, $pod_date = null, $pod_time = null, $pod_name = null, array $tt_rec = array())
    {
        $this
            -&gt;setSt_flag($st_flag)
            -&gt;setSt_title($st_title)
            -&gt;setPod_date($pod_date)
            -&gt;setPod_time($pod_time)
            -&gt;setPod_name($pod_name)
            -&gt;setTt_rec($tt_rec);
    }
    /**
     * Get st_flag value
     * @return int|null
     */
    public function getSt_flag()
    {
        return $this-&gt;st_flag;
    }
    /**
     * Set st_flag value
     * @param int $st_flag
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function setSt_flag($st_flag = null)
    {
        // validation for constraint: int
        if (!is_null($st_flag) &amp;&amp; !(is_int($st_flag) || ctype_digit($st_flag))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($st_flag, true), gettype($st_flag)), __LINE__);
        }
        $this-&gt;st_flag = $st_flag;
        return $this;
    }
    /**
     * Get st_title value
     * @return string|null
     */
    public function getSt_title()
    {
        return $this-&gt;st_title;
    }
    /**
     * Set st_title value
     * @param string $st_title
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function setSt_title($st_title = null)
    {
        // validation for constraint: string
        if (!is_null($st_title) &amp;&amp; !is_string($st_title)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($st_title, true), gettype($st_title)), __LINE__);
        }
        $this-&gt;st_title = $st_title;
        return $this;
    }
    /**
     * Get pod_date value
     * @return string|null
     */
    public function getPod_date()
    {
        return $this-&gt;pod_date;
    }
    /**
     * Set pod_date value
     * @param string $pod_date
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function setPod_date($pod_date = null)
    {
        // validation for constraint: string
        if (!is_null($pod_date) &amp;&amp; !is_string($pod_date)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($pod_date, true), gettype($pod_date)), __LINE__);
        }
        $this-&gt;pod_date = $pod_date;
        return $this;
    }
    /**
     * Get pod_time value
     * @return string|null
     */
    public function getPod_time()
    {
        return $this-&gt;pod_time;
    }
    /**
     * Set pod_time value
     * @param string $pod_time
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function setPod_time($pod_time = null)
    {
        // validation for constraint: string
        if (!is_null($pod_time) &amp;&amp; !is_string($pod_time)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($pod_time, true), gettype($pod_time)), __LINE__);
        }
        $this-&gt;pod_time = $pod_time;
        return $this;
    }
    /**
     * Get pod_name value
     * @return string|null
     */
    public function getPod_name()
    {
        return $this-&gt;pod_name;
    }
    /**
     * Set pod_name value
     * @param string $pod_name
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function setPod_name($pod_name = null)
    {
        // validation for constraint: string
        if (!is_null($pod_name) &amp;&amp; !is_string($pod_name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($pod_name, true), gettype($pod_name)), __LINE__);
        }
        $this-&gt;pod_name = $pod_name;
        return $this;
    }
    /**
     * Get tt_rec value
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec[]|null
     */
    public function getTt_rec()
    {
        return $this-&gt;tt_rec;
    }
    /**
     * This method is responsible for validating the values passed to the setTt_rec method
     * This method is willingly generated in order to preserve the one-line inline validation within the setTt_rec method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateTt_recForArrayConstraintsFromSetTt_rec(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $rEADResponseTt_recItem) {
            // validation for constraint: itemType
            if (!$rEADResponseTt_recItem instanceof \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec) {
                $invalidValues[] = is_object($rEADResponseTt_recItem) ? get_class($rEADResponseTt_recItem) : sprintf('%s(%s)', gettype($rEADResponseTt_recItem), var_export($rEADResponseTt_recItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The tt_rec property can only contain items of type \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set tt_rec value
     * @throws \InvalidArgumentException
     * @param \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec[] $tt_rec
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function setTt_rec(array $tt_rec = array())
    {
        // validation for constraint: array
        if ('' !== ($tt_recArrayErrorMessage = self::validateTt_recForArrayConstraintsFromSetTt_rec($tt_rec))) {
            throw new \InvalidArgumentException($tt_recArrayErrorMessage, __LINE__);
        }
        // validation for constraint: maxOccurs(50)
        if (is_array($tt_rec) &amp;&amp; count($tt_rec) &gt; 50) {
            throw new \InvalidArgumentException(sprintf('Invalid count of %s, the number of elements contained by the property must be less than or equal to 50', count($tt_rec)), __LINE__);
        }
        $this-&gt;tt_rec = $tt_rec;
        return $this;
    }
    /**
     * Add item to tt_rec value
     * @throws \InvalidArgumentException
     * @param \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec $item
     * @return \TaxyTrack\TaxyTrackStruct\TaxyTrackREADResponse
     */
    public function addToTt_rec(\TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec) {
            throw new \InvalidArgumentException(sprintf('The tt_rec property can only contain items of type \TaxyTrack\TaxyTrackStruct\TaxyTrackTt_rec, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        // validation for constraint: maxOccurs(50)
        if (is_array($this-&gt;tt_rec) &amp;&amp; count($this-&gt;tt_rec) &gt;= 50) {
            throw new \InvalidArgumentException(sprintf('You can\'t add anymore element to this property that already contains %s elements, the number of elements contained by the property must be less than or equal to 50', count($this-&gt;tt_rec)), __LINE__);
        }
        $this-&gt;tt_rec[] = $item;
        return $this;
    }
}
</pre></body></html>