<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AddSipRoutePatternReq StructType
 * @subpackage Structs
 */
class AddSipRoutePatternReq extends APIRequest
{
    /**
     * The sipRoutePattern
     * @var XSipRoutePattern
     */
    public $sipRoutePattern;
    /**
     * Constructor method for AddSipRoutePatternReq
     * @uses AddSipRoutePatternReq::setSipRoutePattern()
     * @param XSipRoutePattern $sipRoutePattern
     */
    public function __construct(XSipRoutePattern $sipRoutePattern = null)
    {
        $this
            ->setSipRoutePattern($sipRoutePattern);
    }
    /**
     * Get sipRoutePattern value
     * @return XSipRoutePattern|null
     */
    public function getSipRoutePattern()
    {
        return $this->sipRoutePattern;
    }
    /**
     * Set sipRoutePattern value
     * @param XSipRoutePattern $sipRoutePattern
     * @return AddSipRoutePatternReq
     */
    public function setSipRoutePattern(XSipRoutePattern $sipRoutePattern = null)
    {
        $this->sipRoutePattern = $sipRoutePattern;
        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 AddSipRoutePatternReq
     */
    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__;
    }
}
