src/MessageValidator.php
public function isValid(Message $message)
    {
        try {
            $this->validate($message);
            return true;
        } catch (InvalidSnsMessageException $e) {
            return false;
        }
    }
public function isValid(Message $message)
    {
        try {
            $this->validate($message);
            return true;
        } catch (InvalidSnsMessageException $e) {
            return false;
        }
    }
public function isValid ( Message $ message ) { try { $ this -> validate ( $ message ) ; return true ; } catch ( InvalidSnsMessageException $ e ) { return false ; } }
Determines if a message is valid and that is was delivered by AWS. This
method does not throw exceptions and returns a simple boolean value.

@param Message $message The message to validate

@return bool
Determines if a message is valid and that is was delivered by AWS . This method does not throw exceptions and returns a simple boolean value .