PHP Class PhpBench\Serializer\XmlDecoder

Show file Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
decode ( PhpBench\Dom\Document $document ) : SuiteCollection Decode a PHPBench XML document into a SuiteCollection.
decodeFiles ( array $files ) : SuiteCollection Return a SuiteCollection from a number of PHPBench xml files.

Private Methods

Method Description
getComputedStats ( DOMElement $element )
getParameters ( DOMElement $element )
processBenchmark ( Benchmark $benchmark, DOMElement $benchmarkEl, array $resultClasses )
processSubject ( Subject $subject, DOMElement $subjectEl, array $resultClasses )
processSuite ( DOMElement $suiteEl )
processVariant ( Variant $variant, DOMElement $variantEl, array $resultClasses )

Method Details

decode() public method

Decode a PHPBench XML document into a SuiteCollection.
public decode ( PhpBench\Dom\Document $document ) : SuiteCollection
$document PhpBench\Dom\Document
return PhpBench\Model\SuiteCollection

decodeFiles() public method

Return a SuiteCollection from a number of PHPBench xml files.
public decodeFiles ( array $files ) : SuiteCollection
$files array
return PhpBench\Model\SuiteCollection