public static function fromSuccess(array $params)
    {
        $matchResult = new self();
        $matchResult->type = 'success';
        $matchResult->params = $params;
        return $matchResult;
    }
public static function fromSuccess(array $params)
    {
        $matchResult = new self();
        $matchResult->type = 'success';
        $matchResult->params = $params;
        return $matchResult;
    }
public static function fromSuccess ( array $ params ) { $ matchResult = new self ( ) ; $ matchResult -> type = 'success' ; $ matchResult -> params = $ params ; return $ matchResult ; }
Creates a success match result.

@param  array $params
@return self
Creates a success match result .