Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait Includes |
||
11 | { |
||
12 | /** |
||
13 | * Returns `true` if the given `needle` is in the array or `false` otherwise. |
||
14 | * |
||
15 | * @param $needle |
||
16 | * @param array $options options, including `strict` to also check the type. |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function includes($needle, array $options = []): bool |
||
28 |