1 | <?php |
||
11 | class Pagination extends Component implements IPagination |
||
12 | { |
||
13 | /** @var int */ |
||
14 | protected $from = 0; |
||
15 | |||
16 | /** @var int */ |
||
17 | protected $to = 0; |
||
18 | |||
19 | /** @var int */ |
||
20 | protected $pageSize = 0; |
||
21 | |||
22 | /** @var int */ |
||
23 | protected $totalCount = 0; |
||
24 | |||
25 | /** @var int */ |
||
26 | protected $numberCount = 5; |
||
27 | |||
28 | /** @var array */ |
||
29 | protected $pageSizes = [10, 50, 200]; |
||
30 | |||
31 | /** @var array */ |
||
32 | protected $attributes = ['class' => 'hello']; |
||
33 | |||
34 | /** @var Actions */ |
||
35 | protected $buttons; |
||
36 | |||
37 | /** |
||
38 | * @param int $from |
||
39 | * @param int $pageSize |
||
40 | * @param int $totalCount |
||
41 | * @param int $maxNumButtons |
||
|
|||
42 | * @param array $pageSizes |
||
43 | * @param array $attributes |
||
44 | */ |
||
45 | 15 | public function __construct( |
|
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | 3 | public function getTo(): int |
|
74 | |||
75 | /** |
||
76 | * @return int |
||
77 | */ |
||
78 | 9 | public function getMinPageNumber(): int |
|
86 | |||
87 | /** |
||
88 | * @return int |
||
89 | */ |
||
90 | 9 | public function getMaxPageNumber(): int |
|
98 | |||
99 | /** |
||
100 | * @return array |
||
101 | */ |
||
102 | 6 | public function getPageNumbers(): array |
|
114 | |||
115 | 3 | public function createButtons() |
|
143 | |||
144 | /** |
||
145 | * @return string |
||
146 | */ |
||
147 | 3 | public function __toString(): string |
|
155 | } |
||
156 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.