class XmlCronjobReader extends XmlReaderBase
{ protected $xsdFile = __DIR__ . '/../schema/cronjob.xsd';
protected function parseFile(DOMDocument
$xml): array
{ $nodeList =
(new DOMXPath($xml))->
query('//cronjobs/cronjob'
);
if (!
$nodeList instanceof DOMNodeList
) { return [];
} return $this->
parseList($nodeList);
} private function parseList(DOMNodeList
$list): array
{ if ($list->length === 0
) { return [];
} $items =
[];
foreach ($list as $item) {