<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ListH323PhoneReq StructType
 * @subpackage Structs
 */
class ListH323PhoneReq extends AbstractStructBase
{
    /**
     * The returnedTags
     * Meta informations extracted from the WSDL
     * - minOccurs: 1
     * @var LH323Phone
     */
    public $returnedTags;
    /**
     * The searchCriteria
     * @var SearchCriteria
     */
    public $searchCriteria;
    /**
     * The skip
     * Meta informations extracted from the WSDL
     * - documentation: It will be used only when first tag is specified.
     * - minOccurs: 0
     * @var int
     */
    public $skip;
    /**
     * The first
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $first;
    /**
     * The sequence
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var int
     */
    public $sequence;
    /**
     * Constructor method for ListH323PhoneReq
     * @uses ListH323PhoneReq::setReturnedTags()
     * @uses ListH323PhoneReq::setSearchCriteria()
     * @uses ListH323PhoneReq::setSkip()
     * @uses ListH323PhoneReq::setFirst()
     * @uses ListH323PhoneReq::setSequence()
     * @param LH323Phone $returnedTags
     * @param SearchCriteria $searchCriteria
     * @param int $skip
     * @param int $first
     * @param int $sequence
     */
    public function __construct(LH323Phone $returnedTags = null, SearchCriteria $searchCriteria = null, $skip = null, $first = null, $sequence = null)
    {
        $this
            ->setReturnedTags($returnedTags)
            ->setSearchCriteria($searchCriteria)
            ->setSkip($skip)
            ->setFirst($first)
            ->setSequence($sequence);
    }
    /**
     * Get returnedTags value
     * @return LH323Phone
     */
    public function getReturnedTags()
    {
        return $this->returnedTags;
    }
    /**
     * Set returnedTags value
     * @param LH323Phone $returnedTags
     * @return ListH323PhoneReq
     */
    public function setReturnedTags(LH323Phone $returnedTags = null)
    {
        $this->returnedTags = $returnedTags;
        return $this;
    }
    /**
     * Get searchCriteria value
     * @return SearchCriteria|null
     */
    public function getSearchCriteria()
    {
        return $this->searchCriteria;
    }
    /**
     * Set searchCriteria value
     * @param SearchCriteria $searchCriteria
     * @return ListH323PhoneReq
     */
    public function setSearchCriteria(SearchCriteria $searchCriteria = null)
    {
        $this->searchCriteria = $searchCriteria;
        return $this;
    }
    /**
     * Get skip value
     * @return int|null
     */
    public function getSkip()
    {
        return $this->skip;
    }
    /**
     * Set skip value
     * @param int $skip
     * @return ListH323PhoneReq
     */
    public function setSkip($skip = null)
    {
        // validation for constraint: int
        if (!is_null($skip) && !is_numeric($skip)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($skip)), __LINE__);
        }
        $this->skip = $skip;
        return $this;
    }
    /**
     * Get first value
     * @return int|null
     */
    public function getFirst()
    {
        return $this->first;
    }
    /**
     * Set first value
     * @param int $first
     * @return ListH323PhoneReq
     */
    public function setFirst($first = null)
    {
        // validation for constraint: int
        if (!is_null($first) && !is_numeric($first)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($first)), __LINE__);
        }
        $this->first = $first;
        return $this;
    }
    /**
     * Get sequence value
     * @return int|null
     */
    public function getSequence()
    {
        return $this->sequence;
    }
    /**
     * Set sequence value
     * @param int $sequence
     * @return ListH323PhoneReq
     */
    public function setSequence($sequence = null)
    {
        // validation for constraint: int
        if (!is_null($sequence) && !is_numeric($sequence)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($sequence)), __LINE__);
        }
        $this->sequence = $sequence;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return ListH323PhoneReq
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
