1 | <?php |
||
19 | class TransformerHelper |
||
20 | { |
||
21 | /** |
||
22 | * @param $transformer |
||
23 | * @return bool |
||
24 | */ |
||
25 | 3 | public static function isTransformer($transformer): bool |
|
30 | |||
31 | /** |
||
32 | * @param $transformer |
||
33 | * @return bool |
||
34 | */ |
||
35 | public static function isTransformerClass($transformer): bool |
||
39 | |||
40 | /** |
||
41 | * @param $transformer |
||
42 | * @return null|callable|TransformerInterface |
||
43 | */ |
||
44 | public static function resolve($transformer) |
||
56 | } |
||
57 |