public function parse(): ConfigInterface
    {
        $config = new Config();
        array_map(
            function($line) use ($config) {
                if (preg_match('/^(\S+)\ (.*)/', $line, $matches)) {
                    switch ($matches[1]) {
                        case 'push':
                            $config->addPush($matches[2]);
                            break;
                        case 'ca':
                        case 'cert':
                        case 'key':
                        case 'dh':
                        case 'tls-auth':
                            $config->addCert($matches[1], $matches[2]);
                            break;
                        default:
                            $config->add($matches[1], $matches[2]);
                            break;
                    }
                }
            },
            $this->_lines
        );
        return $config;
    }