original_string: protected function createCollectionResourceForItems($items, $from, $to, $count)
      {
          $resource = parent::get();
          $resource->items = $items;
          $resource->count = $count;
          $resource->range = new \stdClass();
          $resource->range->from = $from;
          $resource->range->to = $to;
  
          return $resource;
      }
code: protected function createCollectionResourceForItems($items, $from, $to, $count)
      {
          $resource = parent::get();
          $resource->items = $items;
          $resource->count = $count;
          $resource->range = new \stdClass();
          $resource->range->from = $from;
          $resource->range->to = $to;
  
          return $resource;
      }
code_tokens: protected function createCollectionResourceForItems ( $ items , $ from , $ to , $ count ) { $ resource = parent :: get ( ) ; $ resource -> items = $ items ; $ resource -> count = $ count ; $ resource -> range = new \ stdClass ( ) ; $ resource -> range -> from = $ from ; $ resource -> range -> to = $ to ; return $ resource ; }
docstring: Creates a valid collection response from a list of objects.
  
  @param Collection|\stdClass[] $items
  @param int $from
  @param int $to
  @param int $count
  @return \stdClass
docstring_tokens: Creates a valid collection response from a list of objects .