public function GetCredit() { if (!$this->username and !$this->password) { return; } $client = new SoapClient($this->wsdl_link); $result = $client->getCredit($this->username, $this->password); return $result[0]['id']; }