1 | <?php |
||
11 | final class PagerUriManager implements PagerUriManagerInterface |
||
12 | { |
||
13 | use OptionsTrait; |
||
14 | |||
15 | public const OPT_PAGESIZE_QUERY_PARAM = 'pagesize_query_param'; |
||
16 | public const OPT_PAGE_QUERY_PARAM = 'page_query_param'; |
||
17 | |||
18 | /** |
||
19 | * PageSizerUriParser constructor. |
||
20 | */ |
||
21 | public function __construct(array $options = []) |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | public function getCurrentPageSize(UriInterface $uri): ?int |
||
41 | |||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | public function getCurrentPageNumber(UriInterface $uri): ?int |
||
51 | |||
52 | /** |
||
53 | * @param UriInterface $uri |
||
54 | * @param int $pageNumber |
||
55 | * @param bool|null $paginationEnabled |
||
|
|||
56 | * @return UriInterface |
||
57 | * @throws \InvalidArgumentException |
||
58 | */ |
||
59 | public function buildPageUri(UriInterface $uri, int $pageNumber): UriInterface |
||
71 | |||
72 | /** |
||
73 | * @param UriInterface $uri |
||
74 | * @param int $size |
||
75 | * @return UriInterface |
||
76 | * @throws \InvalidArgumentException |
||
77 | * @throws \Symfony\Component\OptionsResolver\Exception\NoSuchOptionException |
||
78 | */ |
||
79 | public function buildSizeUri(UriInterface $uri, ?int $size): UriInterface |
||
92 | } |
||
93 |
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.