public static function fromMethodFailure(array $allowedMethods)
    {
        $matchResult = new self();
        $matchResult->type = 'methodFailure';
        $matchResult->allowedMethods = $allowedMethods;
        return $matchResult;
    }
public static function fromMethodFailure(array $allowedMethods)
    {
        $matchResult = new self();
        $matchResult->type = 'methodFailure';
        $matchResult->allowedMethods = $allowedMethods;
        return $matchResult;
    }
public static function fromMethodFailure ( array $ allowedMethods ) { $ matchResult = new self ( ) ; $ matchResult -> type = 'methodFailure' ; $ matchResult -> allowedMethods = $ allowedMethods ; return $ matchResult ; }
Creates a method failure match reuslt.

@param  array $allowedMethods
@return self
Creates a method failure match reuslt .