<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ListLdapSyncCustomFieldReq StructType
 * @subpackage Structs
 */
class ListLdapSyncCustomFieldReq extends AbstractStructBase
{
    /**
     * The searchCriteria
     * @var SearchCriteria
     */
    public $searchCriteria;
    /**
     * The returnedTags
     * @var NewLLdapSyncCustomField
     */
    public $returnedTags;
    /**
     * The skip
     * Meta informations extracted from the WSDL
     * - 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 ListLdapSyncCustomFieldReq
     * @uses ListLdapSyncCustomFieldReq::setSearchCriteria()
     * @uses ListLdapSyncCustomFieldReq::setReturnedTags()
     * @uses ListLdapSyncCustomFieldReq::setSkip()
     * @uses ListLdapSyncCustomFieldReq::setFirst()
     * @uses ListLdapSyncCustomFieldReq::setSequence()
     * @param SearchCriteria $searchCriteria
     * @param NewLLdapSyncCustomField $returnedTags
     * @param int $skip
     * @param int $first
     * @param int $sequence
     */
    public function __construct(SearchCriteria $searchCriteria = null, NewLLdapSyncCustomField $returnedTags = null, $skip = null, $first = null, $sequence = null)
    {
        $this
            ->setSearchCriteria($searchCriteria)
            ->setReturnedTags($returnedTags)
            ->setSkip($skip)
            ->setFirst($first)
            ->setSequence($sequence);
    }
    /**
     * Get searchCriteria value
     * @return SearchCriteria|null
     */
    public function getSearchCriteria()
    {
        return $this->searchCriteria;
    }
    /**
     * Set searchCriteria value
     * @param SearchCriteria $searchCriteria
     * @return ListLdapSyncCustomFieldReq
     */
    public function setSearchCriteria(SearchCriteria $searchCriteria = null)
    {
        $this->searchCriteria = $searchCriteria;
        return $this;
    }
    /**
     * Get returnedTags value
     * @return NewLLdapSyncCustomField|null
     */
    public function getReturnedTags()
    {
        return $this->returnedTags;
    }
    /**
     * Set returnedTags value
     * @param NewLLdapSyncCustomField $returnedTags
     * @return ListLdapSyncCustomFieldReq
     */
    public function setReturnedTags(NewLLdapSyncCustomField $returnedTags = null)
    {
        $this->returnedTags = $returnedTags;
        return $this;
    }
    /**
     * Get skip value
     * @return int|null
     */
    public function getSkip()
    {
        return $this->skip;
    }
    /**
     * Set skip value
     * @param int $skip
     * @return ListLdapSyncCustomFieldReq
     */
    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 ListLdapSyncCustomFieldReq
     */
    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 ListLdapSyncCustomFieldReq
     */
    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 ListLdapSyncCustomFieldReq
     */
    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__;
    }
}
