PhpBench\Storage\Driver\Xml\XmlDriver::fetch PHP Method

fetch() public method

public fetch ( $runId )
    public function fetch($runId)
    {
        if (!$this->has($runId)) {
            throw new \InvalidArgumentException(sprintf('Cannot find run with UUID "%s"', $runId));
        }
        $path = $this->getPath($runId);
        $dom = new Document();
        $dom->load($path);
        $collection = $this->xmlDecoder->decode($dom);
        return $collection;
    }