public function red(bool $background = null): void
    {
        $this->setColor(
            $background ? FormatBackground::RED : FormatForeground::RED,
            $background
        );
    }
public function red(bool $background = null): void
    {
        $this->setColor(
            $background ? FormatBackground::RED : FormatForeground::RED,
            $background
        );
    }
public function red ( bool $ background = null ) : void { $ this -> setColor ( $ background ? FormatBackground :: RED : FormatForeground :: RED , $ background ) ; }
Set foreground or background to red.

@param bool $background [optional] Whether this is to set the background

@return void
Set foreground or background to red .