public function getResult($name = null, $default = null)
    {
        if (null === $name) {
            return end($this->results);
        }
        if (! isset($this->results[$name])) {
            return $default;
        }

        return $this->results[$name];
    }