public function GetCredit() { if (!$this->username and !$this->password) { return false; } $client = new SoapClient($this->wsdl_link); $result = $client->Credits($this->username, $this->password); return $result; }