public function set($domain, $key, $value = null)
    {
        $this->validateDomain($domain);
        if (null !== $value) {
            $this->profile[$domain][$key] = $value;
        } else {
            $this->profile[$domain] = $key;
        }
    }
public function set($domain, $key, $value = null)
    {
        $this->validateDomain($domain);
        if (null !== $value) {
            $this->profile[$domain][$key] = $value;
        } else {
            $this->profile[$domain] = $key;
        }
    }
public function set ( $ domain , $ key , $ value = null ) { $ this -> validateDomain ( $ domain ) ; if ( null !== $ value ) { $ this -> profile [ $ domain ] [ $ key ] = $ value ; } else { $ this -> profile [ $ domain ] = $ key ; } }
Set a domain configuration.

@param string $domain
@param $key
@param array|null $value
Set a domain configuration .