lib/Serializer/XmlDecoder.php
public function decode(Document $document)
    {
        $suites = [];

        foreach ($document->query('//suite') as $suiteEl) {
            $suites[] = $this->processSuite($suiteEl);
        }

        return new SuiteCollection($suites);
    }
public function decode(Document $document)
    {
        $suites = [];

        foreach ($document->query('//suite') as $suiteEl) {
            $suites[] = $this->processSuite($suiteEl);
        }

        return new SuiteCollection($suites);
    }
public function decode ( Document $ document ) { $ suites = [ ] ; foreach ( $ document -> query ( '//suite' ) as $ suiteEl ) { $ suites [ ] = $ this -> processSuite ( $ suiteEl ) ; } return new SuiteCollection ( $ suites ) ; }
Decode a PHPBench XML document into a SuiteCollection.

@param Document $document

@return SuiteCollection
Decode a PHPBench XML document into a SuiteCollection .