1 | <?php |
||
10 | class Permutations extends Combinatorics { |
||
11 | |||
12 | /** |
||
13 | * Permutations constructor. |
||
14 | * |
||
15 | * @param array $dataset |
||
16 | * @param int $length |
||
|
|||
17 | */ |
||
18 | 3 | public function __construct(array $dataset = array(), $length = NULL) { |
|
21 | |||
22 | /** |
||
23 | * @return int |
||
24 | */ |
||
25 | 3 | public function count() { |
|
28 | |||
29 | /** |
||
30 | * @return \Generator |
||
31 | */ |
||
32 | 3 | public function generator() { |
|
54 | |||
55 | /** |
||
56 | * @param $items |
||
57 | * @param array $perms |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | 3 | protected function permute($p, $size) { |
|
84 | |||
85 | /** |
||
86 | * @return array |
||
87 | */ |
||
88 | 3 | public function toArray() { |
|
97 | |||
98 | } |
||
99 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.