original_string: public function createFromArray($config)
      {
          if (isset($config['viewConfig'])) {
              $this->viewBuilder()->createFromArray($config['viewConfig']);
              unset($config['viewConfig']);
          }
  
          foreach ($config as $property => $value) {
              $this->{$property} = $value;
          }
  
          return $this;
      }
code: public function createFromArray($config)
      {
          if (isset($config['viewConfig'])) {
              $this->viewBuilder()->createFromArray($config['viewConfig']);
              unset($config['viewConfig']);
          }
  
          foreach ($config as $property => $value) {
              $this->{$property} = $value;
          }
  
          return $this;
      }
code_tokens: public function createFromArray ( $ config ) { if ( isset ( $ config [ 'viewConfig' ] ) ) { $ this -> viewBuilder ( ) -> createFromArray ( $ config [ 'viewConfig' ] ) ; unset ( $ config [ 'viewConfig' ] ) ; } foreach ( $ config as $ property => $ value ) { $ this -> { $ property } = $ value ; } return $ this ; }
docstring: Configures an email instance object from serialized config.
  
  @param array $config Email configuration array.
  @return $this Configured email instance.
docstring_tokens: Configures an email instance object from serialized config .