Skip to content
Snippets Groups Projects
Commit 70886146 authored by Matt Trefilek's avatar Matt Trefilek
Browse files

Passing in reasons array instead of string

parent 64fd412f
No related branches found
No related tags found
1 merge request!3Change Reason string to array of reasons
...@@ -297,11 +297,11 @@ class RpcNetidClientSoap implements RpcNetidClient { ...@@ -297,11 +297,11 @@ class RpcNetidClientSoap implements RpcNetidClient {
} }
if( $result->result === 400){ if( $result->result === 400){
return new RpcNetidStructValidationResponse(false, $result->Reasons->Reason ); return new RpcNetidStructValidationResponse(false, $result->Reasons );
} }
if( $result->result === 401){ if( $result->result === 401){
return new RpcNetidStructValidationResponse(false, $result->Reasons->Reason ); return new RpcNetidStructValidationResponse(false, $result->Reasons );
} }
throw new RpcNetidClientSoapException("Unexpected status code: {$result->result}", throw new RpcNetidClientSoapException("Unexpected status code: {$result->result}",
......
...@@ -22,7 +22,7 @@ class RpcNetidStructValidationResponse { ...@@ -22,7 +22,7 @@ class RpcNetidStructValidationResponse {
/** /**
* @param bool $isValid * @param bool $isValid
* @param string $reason * @param array $reasons the array of Reason(s) for why the SOAP Call failed
*/ */
function __construct( $isValid, array $reasons ) { function __construct( $isValid, array $reasons ) {
$this->setIsValid( $isValid ); $this->setIsValid( $isValid );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment