src/Google/AdsApi/AdManager/AdManagerHeaderHandler.php
private function createSoapHeaderObject(
        AdsServiceDescriptor $serviceDescriptor
    ) {
        // The SOAP header object is in the same namespace as the Ad Manager
        // service we are generating headers for.
        $reflectionClass = new ReflectionClass(
            $serviceDescriptor->getServiceClass()
        );

        return $this->reflection->createInstance(
            sprintf(
                '%s\\%s',
                $reflectionClass->getNamespaceName(),
                self::SOAP_HEADER_CLASS_NAME
            )
        );
    }
private function createSoapHeaderObject(
        AdsServiceDescriptor $serviceDescriptor
    ) {
        // The SOAP header object is in the same namespace as the Ad Manager
        // service we are generating headers for.
        $reflectionClass = new ReflectionClass(
            $serviceDescriptor->getServiceClass()
        );

        return $this->reflection->createInstance(
            sprintf(
                '%s\\%s',
                $reflectionClass->getNamespaceName(),
                self::SOAP_HEADER_CLASS_NAME
            )
        );
    }
private function createSoapHeaderObject ( AdsServiceDescriptor $ serviceDescriptor ) { // The SOAP header object is in the same namespace as the Ad Manager // service we are generating headers for. $ reflectionClass = new ReflectionClass ( $ serviceDescriptor -> getServiceClass ( ) ) ; return $ this -> reflection -> createInstance ( sprintf ( '%s\\%s' , $ reflectionClass -> getNamespaceName ( ) , self :: SOAP_HEADER_CLASS_NAME ) ) ; }
Creates a new instance of the SOAP header object used by the Ad Manager
API.
Creates a new instance of the SOAP header object used by the Ad Manager API .