public function setType($type, $config = array())
    {
        $this->set('type', $type);

        foreach ($config as $key => $value) {
            $this->setValue($key, $value);
        }

        return $this;
    }
public function setType($type, $config = array())
    {
        $this->set('type', $type);

        foreach ($config as $key => $value) {
            $this->setValue($key, $value);
        }

        return $this;
    }
public function setType ( $ type , $ config = array ( ) ) { $ this -> set ( 'type' , $ type ) ; foreach ( $ config as $ key => $ value ) { $ this -> setValue ( $ key , $ value ) ; } return $ this ; }
Sets the type of the notification. If an array of configuration is passed, it will
store it as the notification configuration.

@param string $type   The type of the notification
@param array  $config An array of configuration for the notification

@return ComNotificationsDomainEntityNotification
Sets the type of the notification . If an array of configuration is passed it will store it as the notification configuration .