| 1 | <?php |
||
| 17 | class TransformerHelper |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The sync payload action name |
||
| 21 | */ |
||
| 22 | const PAYLOAD_ACTION_SYNC = 'sync'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The sync payload action name |
||
| 26 | */ |
||
| 27 | const PAYLOAD_ACTION_SAVE = 'save'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $transformer |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public static function isTransformerClass($transformer): bool |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param $transformer |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | public static function isTransformerClassArray($transformer): bool |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @noinspection PhpDocMissingThrowsInspection |
||
| 58 | * |
||
| 59 | * @param $transformer |
||
| 60 | * @return callable|null |
||
| 61 | */ |
||
| 62 | public static function resolveTransformer($transformer) |
||
| 80 | } |
||
| 81 |