| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait CountValues |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Counts all the values of the array. |
||
| 15 | * |
||
| 16 | * Returns an array using the values of the array as keys and their frequency as values. |
||
| 17 | * |
||
| 18 | * @return array an associative array of values from the array as keys and their count value |
||
| 19 | */ |
||
| 20 | 1 | public function countValues(): array |
|
| 25 |