1 | <?php |
||
8 | class Pages implements \IteratorAggregate |
||
9 | { |
||
10 | /** |
||
11 | * @var integer[] Added integer page numbers |
||
12 | */ |
||
13 | private $pages = []; |
||
14 | |||
15 | /** |
||
16 | * Constructor |
||
17 | * |
||
18 | * Pages should be formatted as 1,3,6 or 12-16 or combined. Note that pages |
||
19 | * are merged in the order that you provide them. If you put pages 12-14 |
||
20 | * before 1-5 then 12-14 will be placed first. |
||
21 | * |
||
22 | * @param string $expressionString |
||
23 | * @throws Exception If unable to parse page numbers |
||
24 | */ |
||
25 | public function __construct($expressionString = '') |
||
47 | |||
48 | /** |
||
49 | * Add page to collection |
||
50 | * |
||
51 | * @param int|string $page |
||
52 | * @return void |
||
53 | */ |
||
54 | public function addPage($page) |
||
59 | |||
60 | /** |
||
61 | * Add range of pages |
||
62 | * |
||
63 | * @param int|string $start |
||
64 | * @param int|string $end |
||
65 | * @return void |
||
66 | */ |
||
67 | public function addRange($start, $end) |
||
73 | |||
74 | /** |
||
75 | * Get array of integer page numbers |
||
76 | * |
||
77 | * @return integer[] |
||
78 | */ |
||
79 | public function getPages() |
||
83 | |||
84 | /** |
||
85 | * Get iterator of page numbers |
||
86 | */ |
||
87 | public function getIterator() |
||
91 | |||
92 | /** |
||
93 | * Check if pages has been sprcified |
||
94 | * |
||
95 | * @return boolean |
||
96 | */ |
||
97 | public function hasPages() |
||
101 | } |
||
102 |
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..