public function getConfig(?string $option = null)
    {
        return null === $option
            ? $this->config
            : (isset($this->config[$option]) ? $this->config[$option] : null);
    }
public function getConfig(?string $option = null)
    {
        return null === $option
            ? $this->config
            : (isset($this->config[$option]) ? $this->config[$option] : null);
    }
@param null|string $option

@return array|mixed|null