@@ 146-148 (lines=3) @@ | ||
143 | throw new \InvalidArgumentException('$response of doRegister() method only accepts object.'); |
|
144 | } |
|
145 | ||
146 | if( property_exists( $response, 'errorCode') && $response->errorCode !== 0 ) { |
|
147 | throw new Error('User-agent returned error. Error code: ' . $response->errorCode, ERR_BAD_UA_RETURNING ); |
|
148 | } |
|
149 | ||
150 | if( !is_bool( $includeCert ) ) { |
|
151 | throw new \InvalidArgumentException('$include_cert of doRegister() method only accepts boolean.'); |
|
@@ 260-262 (lines=3) @@ | ||
257 | throw new \InvalidArgumentException('$response of doAuthenticate() method only accepts object.'); |
|
258 | } |
|
259 | ||
260 | if( property_exists( $response, 'errorCode') && $response->errorCode !== 0 ) { |
|
261 | throw new Error('User-agent returned error. Error code: ' . $response->errorCode, ERR_BAD_UA_RETURNING ); |
|
262 | } |
|
263 | ||
264 | /** @var object|null $req */ |
|
265 | $req = null; |