public function get($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        return $this->items[$name];
    }
public function get($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        return $this->items[$name];
    }
public function get ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new ItemNotFoundException ( $ name ) ; } return $ this -> items [ $ name ] ; }
Returns a item by name.

@param string $name

@return mixed
Returns a item by name .