Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions src/contracts/Repository/Iterator/BatchIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,15 @@

final class BatchIterator implements Iterator
{
public const DEFAULT_BATCH_SIZE = 25;
public const int DEFAULT_BATCH_SIZE = 25;

/** @var \Ibexa\Contracts\Core\Repository\Iterator\BatchIteratorAdapter */
private $adapter;
private BatchIteratorAdapter $adapter;

/** @var \Iterator|null */
private $innerIterator;
private ?Iterator $innerIterator = null;

/** @var int */
private $batchSize;
private int $batchSize;

/** @var int */
private $position;
private int $position;

public function __construct(
BatchIteratorAdapter $adapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@

final class ContentFilteringAdapter implements BatchIteratorAdapter
{
/** @var \Ibexa\Contracts\Core\Repository\ContentService */
private $contentService;
private ContentService $contentService;

/** @var \Ibexa\Contracts\Core\Repository\Values\Filter\Filter */
private $filter;
private Filter $filter;

/** @var string[]|null */
private $languages;
private ?array $languages;

public function __construct(ContentService $contentService, Filter $filter, ?array $languages = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@

final class LocationFilteringAdapter implements BatchIteratorAdapter
{
/** @var \Ibexa\Contracts\Core\Repository\LocationService */
private $locationService;
private LocationService $locationService;

/** @var \Ibexa\Contracts\Core\Repository\Values\Filter\Filter */
private $filter;
private Filter $filter;

/** @var string[]|null */
private $languages;
private ?array $languages;

public function __construct(LocationService $locationService, Filter $filter, ?array $languages = null)
{
Expand Down
Loading