| 1 | <?php |
||
| 10 | final class Pages implements PagesInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int[] Added integer page numbers |
||
| 14 | */ |
||
| 15 | private $pages = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Parse page numbers from expression string |
||
| 19 | * |
||
| 20 | * Pages should be formatted as 1,3,6 or 12-16 or combined. Note that pages |
||
| 21 | * are merged in the order that you provide them. If you put pages 12-14 |
||
| 22 | * before 1-5 then 12-14 will be placed first. |
||
| 23 | */ |
||
| 24 | public function __construct(string $expressionString = '') |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Add a single page |
||
| 49 | */ |
||
| 50 | public function addPage(int $page): void |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Add a range of pages |
||
| 57 | */ |
||
| 58 | public function addRange(int $start, int $end): void |
||
| 62 | |||
| 63 | public function getPageNumbers(): array |
||
| 67 | } |
||
| 68 |
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..