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

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

        return $this;
    }