| 1 | <?php |
||
| 12 | class BatchingEntityPageFetcher implements BatchingFetcher { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var EntityPageBatchFetcher |
||
| 16 | */ |
||
| 17 | private $batchFetcher; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string[] |
||
| 21 | */ |
||
| 22 | private $pagesToFetch; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $position; |
||
| 28 | |||
| 29 | 16 | public function __construct( EntityPageBatchFetcher $batchFetcher, array $pagesToFetch ) { |
|
| 34 | |||
| 35 | 4 | public function addPagesToFetch( array $pagesToFetch ) { |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @see BatchingFetcher::fetchNext |
||
| 41 | * |
||
| 42 | * @param int $maxFetchCount |
||
| 43 | * |
||
| 44 | * @return EntityPage[] |
||
| 45 | */ |
||
| 46 | 16 | public function fetchNext( $maxFetchCount ) { |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @see BatchingFetcher::rewind |
||
| 68 | */ |
||
| 69 | 16 | public function rewind() { |
|
| 72 | |||
| 73 | } |
||
| 74 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..