Set the Color Scheme Array
@param array $colorScheme The Color Scheme Array
964794
public function setColorizeArray(array $colorScheme)
    {
        // Only store entries that exist as Monolog\Logger levels
        $allowedLogLevels = array_values(\Monolog\Logger::getLevels());
        $colorScheme = array_intersect_key($colorScheme, array_flip($allowedLogLevels));

        // Store the filtered colorScheme
        $this->colorScheme = $colorScheme;
    }
150496
public void setColorSchemeResources(int... colorResIds) {
        final Resources res = getResources();
        int[] colorRes = new int[colorResIds.length];
        for (int i = 0; i < colorResIds.length; i++) {
            colorRes[i] = res.getColor(colorResIds[i]);
        }
        setColorSchemeColors(colorRes);
    }
1167144
func (h *HTTPHealthCheck) SetScheme(scheme string) *HTTPHealthCheck {
	h.Scheme = scheme
	return h
}
70065
public function setScheme($scheme)
    {
        if (! is_string($scheme)) {

            throw new InvalidArgumentException("Scheme must be a string ($scheme)");
        }

        $scheme = strtolower($scheme);

        if (preg_match_all('`^' . self::$_regexScheme . '$`', $scheme, $matches) !== 1) {

            throw new InvalidArgumentException('Scheme names consist of a sequence of characters beginning with a'
               . ' letter and followed by any combination of letters, digits, plus ("+"), period (".")'
               . ', or hyphen ("-")');
        }

        $this->_scheme = $scheme;
    }
1313092
public function setSchema(Schema $schema)
    {
        $this->schema = $schema;

        if (!$this->getSchema()->hasTable($this->getName())) {
            $this->getSchema()->addTable($this);
        }
    }
566072
public function setScheme($scheme)
    {
        if ($this->scheme == 'http' && $this->port == 80) {
            $this->port = null;
        } elseif ($this->scheme == 'https' && $this->port == 443) {
            $this->port = null;
        }

        $this->scheme = $scheme;

        return $this;
    }
1257824
public function setScheme($scheme)
        {
            if (null !== $scheme && !is_string($scheme)) {
                require_once 'Zend/Navigation/Exception.php';
                throw new Exception(
                    'Invalid argument: $scheme must be a string or null'
                );
            }

            $this->_scheme = $scheme;
            return $this;
        }
1206577
def setColorSet(self, colorSet):
        
        self._colorSet = colorSet
        
        # update the palette information
        palette = self.palette()
        palette.setColor( palette.Text, colorSet.color('Standard') )
        palette.setColor( palette.Base, colorSet.color('Background') )
        self.setPalette(palette)
832168
public function setSchemes($schemes)
    {
        $this->schemes = array_map('strtolower', (array) $schemes);
        $this->compiled = null;

        return $this;
    }
126383
private function bgStyles(array $colors) : void
    {
        if (count($colors) !== count($this->values)) {
            throw new Exception('Number of progress bar colours needs to match the number or progress bar values');
        }

        foreach ($colors as $color) {
            if (in_array($color, $this->supported_bg_styles) === true) {
                $this->bg_colors[] = $color;
            }
        }
    }
461356
public function setScheme($scheme)
    {
        if (preg_match(self::PATTERN_MATCH_SCHEME, $scheme) === 1) {
            $this->scheme = strtolower($scheme);
        } else {
            throw new \InvalidArgumentException('"' . $scheme . '" is not a valid scheme.', 1184071237);
        }
    }
380630
public void setSchemas(java.util.Collection<String> schemas) {
        if (schemas == null) {
            this.schemas = null;
            return;
        }

        this.schemas = new java.util.ArrayList<String>(schemas);
    }
87272
protected function setScheme($scheme)
    {
        $scheme = strtolower($scheme);
        
        if ($scheme !== '' && !$this->isSupportedScheme($scheme)) {
            throw new \InvalidArgumentException("Invalid or unsupported scheme '$scheme'");
        }
        
        $this->scheme = $scheme;
    }
869948
private void setColor(String key, String color) throws HelloSignException {
        if (!validateColor(color)) {
            throw new HelloSignException("Invalid color: " + color);
        }
        set(key, color);
    }
662220
func (s *ColumnInfo) SetSchemaName(v string) *ColumnInfo {
	s.SchemaName = &v
	return s
}
1062048
def setColorSet( self, colorSet ):
        
        self.blockSignals(True)
        self.setUpdatesEnabled(False)
        
        self.clear()
        
        self._colorSet = colorSet
        
        if ( colorSet ):
            labels = colorSet.colorGroups()
            self.setHeaderLabels( [colorSet.name()] + labels )
            self.setColumnCount( 1 + len(labels) )
            
            for colorName in colorSet.colorNames():
                item = XColorTreeWidgetItem(colorName, 
                                            colorSet.colors(colorName))
                                            
                self.addTopLevelItem(item)
            
        self.setUpdatesEnabled(True)
        self.blockSignals(False)
1120637
public function setScheme(array $scheme)
    {
        $scheme_handler = new SchemeHandler();
        $scheme_handler->setScheme($scheme);
        
        $this->injectSchemeHandler($scheme_handler);
    }