1 | <?php |
||
8 | class PerPageSelector extends AbstractTool |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $perPage; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $perPageName = ''; |
||
19 | |||
20 | /** |
||
21 | * Create a new PerPageSelector instance. |
||
22 | * |
||
23 | * @param Grid $grid |
||
24 | */ |
||
25 | public function __construct(Grid $grid) |
||
31 | |||
32 | /** |
||
33 | * Do initialize work. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | protected function initialize() |
||
46 | |||
47 | /** |
||
48 | * Get options for selector. |
||
49 | * |
||
50 | * @return static |
||
51 | */ |
||
52 | public function getOptions() |
||
60 | |||
61 | /** |
||
62 | * Render PerPageSelector。 |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function render() |
||
95 | |||
96 | /** |
||
97 | * Script of PerPageSelector. |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | protected function script() |
||
111 | } |
||
112 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.