@param string $section
@param string $key
@param mixed $value

@return bool
Always true.

@throws \InvalidArgumentException
Arg $section empty.
Arg $key wildcard '*'.
481692
public function set(string $section, string $key, $value) : bool
    {
        if ($section === '') {
            throw new \InvalidArgumentException('Arg \'section\' cannot be empty.');
        }
        if ($key === '*') {
            throw new \InvalidArgumentException('Arg \'key\' cannot be wildcard \'*\'.');
        }
        if (!isset($this->map[$section])) {
            $this->arrayAccess[$section] = true;
            $this->map[$section] = [
                $key => $value
            ];
        }
        elseif ($this->arrayAccess[$section]) {
            $this->map[$section][$key] = $value;
        }
        else {
            $this->map[$section]->{$key} = $value;
        }
        return true;
    }
787166
public function addConfig($section, $option, $value)
    {
        if (empty($section)) {
            $section = self::DEFAULT_SECTION;
        }

        if (!isset($this->data[$section])) {
            $this->data[$section] = [];
        }

        $this->data[$section][$option] = $value;

        return true;
    }
322031
public function setSetting($section, $key, $value, $type = null): bool
    {
        $model = static::findOne(['section' => $section, 'key' => $key]);

        if (empty($model)) {
            $model = new static();
        }

        $model->section = $section;
        $model->key = $key;
        $model->value = strval($value);

        if ($type !== null && ArrayHelper::keyExists($type, SettingType::getConstantsByValue())) {
            $model->type = $type;
        } else {
            $model->type = gettype($value);
        }

        return $model->save();
    }
569212
public function getProperty( $section, $key )
	{
		if( !$this->hasProperty( $section, $key ) )
			throw new InvalidArgumentException( 'Key "'.$key.'" is not existing in Section "'.$section.'".' ); 
		return $this->data[$section][$key];
	}
303716
public function map(ValueObject $value): SectionUpdateData
    {
        if (!$value instanceof SectionUpdateStruct) {
            throw new InvalidArgumentException('value', 'must be an instance of ' . SectionUpdateStruct::class);
        }

        return new SectionUpdateData(new Section(['identifier' => $value->identifier, 'name' => $value->name]));
    }
742530
public function sectionHasKey($section, $key)
    {
        return (isset($this->raw_parameters[$section])
            && is_array($this->raw_parameters[$section])
            && array_key_exists($key, $this->raw_parameters[$section])
        );
    }
1262954
public static function set(string $key, $value)
    {
        if (!in_array($key, self::$allowedKeys)) {
            throw new \InvalidArgumentException('Invalid key given');
        }

        self::$storedValues[$key] = $value;
    }
705813
public function remove($section, $key): bool
    {
        if ($this->model->removeSetting($section, $key)) {
            if ($this->invalidateCache()) {
                return true;
            }
        }

        return false;
    }
714006
public function youTryToGetSettingWithinSection($setting, $section)
    {
        $this->responseValue = $this->settingService->section($section)->get($setting, 'null');
    }
20507
public function addSection($key, $value = null)
    {
        if ($key instanceof Section) {
            $section = $key;
            $this->sections[$section->getKey()]
                = $section->getValue();
            return;
        }
        $this->sections[$key] = (string)$value;
    }
89004
public function setMultiple(string $section, $values) : bool
    {
        $sctnd = [];
        foreach ($values as $key => $value) {
            $sctnd[$this->concat($section, $key)] = $value;
        }
        return $this->config->setMultiple($sctnd);
    }
889912
public function deleteSection(string $section) : SectionedMap
    {
        if ($section === '') {
            throw new \InvalidArgumentException('Arg \'section\' cannot be empty.');
        }
        unset($this->map[$section], $this->arrayAccess[$section]);

        return $this;
    }
1287981
public function sectionExists(string $section): bool
    {
        return (bool) trim($this->view->yieldContent($section));
    }
584719
public function setProperty( $key, $value, $section = NULL )
	{
		if( $this->usesSections() )
		{
			if( $this->hasSection( $section ) && $this->hasProperty( $key, $section ) )
				$this->properties[$section][$key] = $value;
			else
				$this->addProperty( $key, $value, FALSE, TRUE, $section );
		}
		else
		{
			if( $this->hasProperty( $key ) )
				$this->properties[$key] = $value;
			else
				$this->addProperty( $key, $value, FALSE, TRUE );
		}
		return is_int( $this->write() );
	}
1044799
public function set($key, $value)
    {
        if (0 == \strlen($key)) {
            throw new CasbinException('key is empty');
        }

        $section = '';

        $keys = explode('::', strtolower($key));
        if (\count($keys) >= 2) {
            $section = $keys[0];
            $option = $keys[1];
        } else {
            $option = $keys[0];
        }
        $this->addConfig($section, $option, $value);
    }
1363156
public function setProperty( $section, $key, $value )
	{
		if( !$this->hasSection( $section ) )
			$this->addSection( $section );
		$this->data[$section][$key]	= $value;
		return is_int( $this->write() );
	}
10833
public function addEntry( $entry, $section )
	{
		if( isset( $this->list[$section] ) && is_array( $this->list[$section] ) && in_array( $entry, $this->list[$section] ) )
			throw new InvalidArgumentException( 'Entry "'.$entry.'" is already in Section "'.$section.'".' );
		$this->list[$section][] = $entry;
	}