original_string: public function config($data)
      {
          $items = is_array($data) ? $data : array();
  
          $config = new Provider\Configuration($items);
  
          if (is_string($data))
          {
              $config->load($data);
          }
  
          $interface = ProviderInterface::CONFIG;
  
          return $this->set($interface, $config);
      }
code: public function config($data)
      {
          $items = is_array($data) ? $data : array();
  
          $config = new Provider\Configuration($items);
  
          if (is_string($data))
          {
              $config->load($data);
          }
  
          $interface = ProviderInterface::CONFIG;
  
          return $this->set($interface, $config);
      }
code_tokens: public function config ( $ data ) { $ items = is_array ( $ data ) ? $ data : array ( ) ; $ config = new Provider \ Configuration ( $ items ) ; if ( is_string ( $ data ) ) { $ config -> load ( $ data ) ; } $ interface = ProviderInterface :: CONFIG ; return $ this -> set ( $ interface , $ config ) ; }
docstring: Creates a new configuration based on given data.
  
  @param  array|string $data
  @return self
docstring_tokens: Creates a new configuration based on given data .