You are here

public function OffsetPage::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Query/OffsetPage.php \Drupal\jsonapi\Query\OffsetPage::__construct()

Instantiates an OffsetPage object.

Parameters

int $offset: The query offset.

int $size: The query size limit.

File

core/modules/jsonapi/src/Query/OffsetPage.php, line 76

Class

OffsetPage
Value object for containing the requested offset and page parameters.

Namespace

Drupal\jsonapi\Query

Code

public function __construct($offset, $size) {
  $this->offset = $offset;
  $this->size = $size;
}