<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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