code: public function get($name)
      {
          if (!$this->exists($name)) {
              throw new \OutOfBoundsException(sprintf('Undefined offset "%s"', $name));
          }
  
          return $this->objects[(string)$name];
      }
docs: Returns the value at the specified index
  
  @param string $name The index
  
  @throws \OutOfBoundsException When the index is invalid
  
  @return mixed