1 | <?php |
||
4 | trait ArrayChecker |
||
5 | { |
||
6 | /** |
||
7 | * Check that the exact specified $count arguments are defined, |
||
8 | * in a numeric array and that the array is dense, ie. doesn't contain |
||
9 | * any holes in the numeric indexes. |
||
10 | * |
||
11 | * @param mixed $elements Elements (should be an array) |
||
12 | * @param int $count Number of elements expected |
||
13 | * @param bool $atLeast Se to true to check array has at least $count elements |
||
14 | * @return bool Success |
||
15 | */ |
||
16 | protected function checkFixedArray($elements, $count, $atLeast = false) |
||
35 | } |
||
36 |