public function setValidateResponses($validateResponses)
    {
        if (is_bool($validateResponses)) {
            $this->validateResponses = $validateResponses;
        } else {
            $msg = "ValidateResponses must be a boolean value, '" . gettype($validateResponses) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setValidateResponses($validateResponses)
    {
        if (is_bool($validateResponses)) {
            $this->validateResponses = $validateResponses;
        } else {
            $msg = "ValidateResponses must be a boolean value, '" . gettype($validateResponses) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setValidateResponses ( $ validateResponses ) { if ( is_bool ( $ validateResponses ) ) { $ this -> validateResponses = $ validateResponses ; } else { $ msg = "ValidateResponses must be a boolean value, '" . gettype ( $ validateResponses ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set if the responses must be validated.

Set whether or not responses must be validated by the Delivery Engine.

@param boolean $validateResponses true if responses must be validated, false if not.
@throws \InvalidArgumentException If $validateResponses is not a boolean.
Set if the responses must be validated .