code: public function getItems(\core_kernel_classes_Class $itemClass, array $propertyFilters = [], $offset = 0, $limit = 30)
      {
          $result = $this->getListResourceLookupService()->getResources($itemClass, [], $propertyFilters, $offset, $limit);
  
          array_map(function($item){
              return array_merge($item, [
                  'categories' => $this->getCategoryService()->getItemCategories($this->getResource($item['uri']))
              ]);
          }, $result['nodes']);
  
          return $result;
      }
docs: Retrieve QTI Items for the given parameters.
  @param \core_kernel_classes_Class $itemClass the item class
  @param array $propertyFilters the lookup format
  @param int    $offset for paging
  @param int    $limit  for paging
  @return array the items