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; }