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

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

@return void
Set foreground or background to magenta .