private static function buildUnderline($string, Border $border)
    {
        $stringLength = Util::getVisibleStringLength($string);
        $underline    = Util::buildPatternLine($border->getLineCharacter(), $stringLength);

        $result = $string . PHP_EOL . $underline . PHP_EOL;

        return $result;
    }
private static function buildUnderline($string, Border $border)
    {
        $stringLength = Util::getVisibleStringLength($string);
        $underline    = Util::buildPatternLine($border->getLineCharacter(), $stringLength);

        $result = $string . PHP_EOL . $underline . PHP_EOL;

        return $result;
    }
private static function buildUnderline ( $ string , Border $ border ) { $ stringLength = Util :: getVisibleStringLength ( $ string ) ; $ underline = Util :: buildPatternLine ( $ border -> getLineCharacter ( ) , $ stringLength ) ; $ result = $ string . PHP_EOL . $ underline . PHP_EOL ; return $ result ; }
Underline with the given Border the given string

@param string $string
@param Border $border

@return string
Underline with the given Border the given string