diff --git a/src/Client.php b/src/Client.php index 3330241a..0868be36 100644 --- a/src/Client.php +++ b/src/Client.php @@ -184,7 +184,7 @@ public function authWithUserAndPass($username, $password) { public function authWithOauth2($token) { - $this->setOath2Token($token); + $this->setOauth2Token($token); } @@ -260,7 +260,7 @@ public function setServer($server) * * @param string $token */ - public function setOath2Token($token) + public function setOauth2Token($token) { $this->token = $token; @@ -1651,7 +1651,7 @@ protected function initializeSoapClient() } - $this->soap = new Oath2Soap( + $this->soap = new Oauth2Soap( dirname(__FILE__) . '/assets/services.wsdl', $authArray ); @@ -1763,7 +1763,7 @@ protected function soapHeaders() -class Oath2Soap extends \SoapClient +class Oauth2Soap extends \SoapClient { /** * cURL resource used to make the SOAP request @@ -1971,4 +1971,4 @@ public function parseResponse($response) ); $this->__last_response = substr($response, $info['header_size']); } -} \ No newline at end of file +}