WsdlToPhp\PackageGenerator\Tests\DomHandler\DomDocumentHandlerTest::eBayInstance PHP Method

eBayInstance() public static method

public static eBayInstance ( ) : DomDocumentHandler
return WsdlToPhp\PackageGenerator\DomHandler\DomDocumentHandler
    public static function eBayInstance()
    {
        if (!isset(self::$ebayInstance)) {
            $doc = new \DOMDocument('1.0', 'utf-8');
            $doc->load(self::wsdlEbayPath());
            self::$ebayInstance = new DomDocumentHandler($doc);
        }
        return self::$ebayInstance;
    }