public function validate0101(MessageInterface $message, &$reason = "")
    {
        // 1.1 incorporates 1.0 validation standar
        if (!$this->validate0100($message, $reason)) {
            return false;
        }

        foreach ($message->getAllAdditionals() as $key => $value) {
            if (!preg_match('#^[\w\.\-]*$#', $key)) {
                $reason = sprintf(
                    "additional key '%s' contains invalid characters",
                    $key
                );

                return false;
            }
        }

        return true;
    }
public function validate0101(MessageInterface $message, &$reason = "")
    {
        // 1.1 incorporates 1.0 validation standar
        if (!$this->validate0100($message, $reason)) {
            return false;
        }

        foreach ($message->getAllAdditionals() as $key => $value) {
            if (!preg_match('#^[\w\.\-]*$#', $key)) {
                $reason = sprintf(
                    "additional key '%s' contains invalid characters",
                    $key
                );

                return false;
            }
        }

        return true;
    }
public function validate0101 ( MessageInterface $ message , & $ reason = "" ) { // 1.1 incorporates 1.0 validation standar if ( ! $ this -> validate0100 ( $ message , $ reason ) ) { return false ; } foreach ( $ message -> getAllAdditionals ( ) as $ key => $ value ) { if ( ! preg_match ( '#^[\w\.\-]*$#' , $ key ) ) { $ reason = sprintf ( "additional key '%s' contains invalid characters" , $ key ) ; return false ; } } return true ; }
Validates a message according to 1.1 standard

@param  MessageInterface $message
@param  string           &$reason
@return bool
Validates a message according to 1 . 1 standard