private function parse($config) { $sshConfig = SSHConfigFile::parseString($config); $r = new \ReflectionObject($sshConfig); $property = $r->getProperty('groups'); $property->setAccessible(true); return $property->getValue($sshConfig); }