output/formatting/Style.php
protected function setColor(string $type, ?string $color) : interfaces\Style
    {
        if (isset($color) && !isset(static::${$type.'s'}[$color])) {
            throw new \InvalidArgumentException("The $type color [$color] is not recognized.");
        }

        $this->$type = $color;

        return $this;
    }
protected function setColor(string $type, ?string $color) : interfaces\Style
    {
        if (isset($color) && !isset(static::${$type.'s'}[$color])) {
            throw new \InvalidArgumentException("The $type color [$color] is not recognized.");
        }

        $this->$type = $color;

        return $this;
    }
protected function setColor ( string $ type , ? string $ color ) : interfaces \ Style { if ( isset ( $ color ) && ! isset ( static :: $ { $ type . 's' } [ $ color ] ) ) { throw new \ InvalidArgumentException ( "The $type color [$color] is not recognized." ) ; } $ this -> $ type = $ color ; return $ this ; }
Sets a specific type of color on this Style.

@param   string  $type   The type of the color to set.
@param   string  $color  The color to set.
@return  $this
Sets a specific type of color on this Style .