Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | trait KeyRequiring |
||
12 | { |
||
13 | /** |
||
14 | * Asserts that our key is present in the input array. |
||
15 | * |
||
16 | * @param array $data Input data that must contain our key. |
||
17 | * @throws UnmappableInput When the input data does not contain our key. |
||
18 | */ |
||
19 | private function mustHaveTheKeyInThe(array $data): void |
||
28 |