Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/Artisaninweb/SoapWrapper/SoapWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,23 @@ public function call($call, $data = [], $options = [])
});
}

/**
* Get last request from a service
*
* @param string $service_name
*
* @return mixed
*/
public function getLastCall($service_name)
{

$service = $this->services[$service_name];

if (!is_null($service->getClient())) {
return $service->getClient()->__getLastRequest();
}
}

/**
* Check if wrapper has service
*
Expand Down