<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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