Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | trait EnumeratesValues |
||
6 | { |
||
7 | /** |
||
8 | * Get a value retrieving callback. |
||
9 | * |
||
10 | * @param callable|string|null $value |
||
11 | * @return callable |
||
12 | */ |
||
13 | protected function valueRetriever($value) |
||
21 | }; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Determine if the given value is callable, but not a string. |
||
26 | * |
||
27 | * @param mixed $value |
||
28 | * @return bool |
||
29 | */ |
||
30 | protected function useAsCallable($value) |
||
33 | } |
||
34 | } |