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;
    }
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;
    }
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 ; }
Configures an email instance object from serialized config.

@param array $config Email configuration array.
@return $this Configured email instance.
Configures an email instance object from serialized config .