function get ($name)
  {
    if (isset($this->items[$name]))
      return $this->items[$name];
    throw new \OutOfBoundsException (sprintf ("%s is not registered on %s.%sCurrently registered: %s", $name,
      static::class, PHP_EOL, $this->items ? implode (', ', array_keys ($this->items)) : '(empty)'));
  }
function get ($name)
  {
    if (isset($this->items[$name]))
      return $this->items[$name];
    throw new \OutOfBoundsException (sprintf ("%s is not registered on %s.%sCurrently registered: %s", $name,
      static::class, PHP_EOL, $this->items ? implode (', ', array_keys ($this->items)) : '(empty)'));
  }
function get ( $ name ) { if ( isset ( $ this -> items [ $ name ] ) ) return $ this -> items [ $ name ] ; throw new \ OutOfBoundsException ( sprintf ( "%s is not registered on %s.%sCurrently registered: %s" , $ name , static :: class , PHP_EOL , $ this -> items ? implode ( ', ' , array_keys ( $ this -> items ) ) : '(empty)' ) ) ; }
Retrieves an item by name.

<p>If no item is registered with the given name, an {@see OutOfBoundsException} is thrown.

@param string $name The registered item name.
@return mixed
Retrieves an item by name .