| 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 array |
||
| 31 | */ |
||
| 32 | 3 | public function generator() { |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param $items |
||
| 38 | * @param array $perms |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 3 | protected function permute($items, $perms = array( )) { |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | 3 | public function toArray() { |
|
| 77 | |||
| 78 | } |
||
| 79 |
This check looks for
@paramannotations 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.