public function get($name)
    {
        if (!$this->exists($name)) {
            throw new \OutOfBoundsException(sprintf('Undefined offset "%s"', $name));
        }

        return $this->objects[(string)$name];
    }
public function get($name)
    {
        if (!$this->exists($name)) {
            throw new \OutOfBoundsException(sprintf('Undefined offset "%s"', $name));
        }

        return $this->objects[(string)$name];
    }
Returns the value at the specified index

@param string $name The index

@throws \OutOfBoundsException When the index is invalid

@return mixed