Skip to content
Snippets Groups Projects

switch reasons and valid

Merged Matt Trefilek requested to merge TREFILEK/rpc-netid-php:master into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -26,12 +26,12 @@ class RpcNetidStructValidationResponse {
*/
function __construct( $isValid, $reasons ) {
if(gettype($reasons) == "array") {
$this->setIsValid( $isValid );
$this->setReasons( $reasons );;
} else {
$this->setIsValid(array( $isValid) );
$this->setReasons( array($reasons) );;
}
$this->setReasons( $reasons );
$this->setIsValid( $isValid );
}
/**
Loading