public function get($label = null)
    {
        if ($label && array_key_exists($label, $this->results)) {
            return $this->results[$label];
        }
        $results = [];
        foreach ($this->results as $v) {
            if (is_array($v)) {
                $results = array_merge($results, $v);
            } else {
                $results[] = $v;
            }
        }

        return $results;
    }
public function get($label = null)
    {
        if ($label && array_key_exists($label, $this->results)) {
            return $this->results[$label];
        }
        $results = [];
        foreach ($this->results as $v) {
            if (is_array($v)) {
                $results = array_merge($results, $v);
            } else {
                $results[] = $v;
            }
        }

        return $results;
    }
public function get ( $ label = null ) { if ( $ label && array_key_exists ( $ label , $ this -> results ) ) { return $ this -> results [ $ label ] ; } $ results = [ ] ; foreach ( $ this -> results as $ v ) { if ( is_array ( $ v ) ) { $ results = array_merge ( $ results , $ v ) ; } else { $ results [ ] = $ v ; } } return $ results ; }
Allows retrieval of a set or results, if a label has been used to
store results then passing the label as a parameter returns just
that set of results.

@param string $label

@return ArrayIterator
Allows retrieval of a set or results if a label has been used to store results then passing the label as a parameter returns just that set of results .