public function get(string $key)
    {
        if (!$this->has($key)) {
            throw new \RuntimeException('No item with name ' . $key . ' available');
        }

        return $this->items[$key];
    }
public function get(string $key)
    {
        if (!$this->has($key)) {
            throw new \RuntimeException('No item with name ' . $key . ' available');
        }

        return $this->items[$key];
    }
public function get ( string $ key ) { if ( ! $ this -> has ( $ key ) ) { throw new \ RuntimeException ( 'No item with name ' . $ key . ' available' ) ; } return $ this -> items [ $ key ] ; }
Get an item from the collection by its key
@param string $key
@return mixed
Get an item from the collection by its key