src/helpers/Line.php
public function text($string, $color = null, $bold = false)
    {
        if ($color !== null) {
            $this->colorize($color, (int) $bold);
        }

        if (!empty($string)) {
            $this->content .= $string . ' ';
        }

        $this->normalize();

        return $this;
    }
public function text($string, $color = null, $bold = false)
    {
        if ($color !== null) {
            $this->colorize($color, (int) $bold);
        }

        if (!empty($string)) {
            $this->content .= $string . ' ';
        }

        $this->normalize();

        return $this;
    }
public function text ( $ string , $ color = null , $ bold = false ) { if ( $ color !== null ) { $ this -> colorize ( $ color , ( int ) $ bold ) ; } if ( ! empty ( $ string ) ) { $ this -> content .= $ string . ' ' ; } $ this -> normalize ( ) ; return $ this ; }
Adds texts to this line.

@param string $string text to add.
@param int|null $color text color.
@param bool $bold whether to use bold text.
@return Line this line.
Adds texts to this line .