original_string: public function set($domain, $key, $value = null)
      {
          $this->validateDomain($domain);
          if (null !== $value) {
              $this->profile[$domain][$key] = $value;
          } else {
              $this->profile[$domain] = $key;
          }
      }
code: public function set($domain, $key, $value = null)
      {
          $this->validateDomain($domain);
          if (null !== $value) {
              $this->profile[$domain][$key] = $value;
          } else {
              $this->profile[$domain] = $key;
          }
      }
code_tokens: public function set ( $ domain , $ key , $ value = null ) { $ this -> validateDomain ( $ domain ) ; if ( null !== $ value ) { $ this -> profile [ $ domain ] [ $ key ] = $ value ; } else { $ this -> profile [ $ domain ] = $ key ; } }
docstring: Set a domain configuration.
  
  @param string $domain
  @param $key
  @param array|null $value
docstring_tokens: Set a domain configuration .