Phalcon\Mailer\Manager::getConfig PHP Method

getConfig() protected method

Get option config or the entire array of config, if the parameter $key is not specified.
protected getConfig ( null $key = null, null $default = null ) : string | array
$key null
$default null
return string | array
    protected function getConfig($key = null, $default = null)
    {
        if ($key !== null) {
            if (isset($this->config[$key])) {
                return $this->config[$key];
            } else {
                return $default;
            }
        }
        return $this->config;
    }