| 1 | <?php |
||
| 4 | abstract class Payload implements PayloadInterface |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @inheritdoc |
||
| 8 | */ |
||
| 9 | public function getPayload(): array |
||
| 13 | 3 | ||
| 14 | /** |
||
| 15 | * If the input array contains objects of PayloadInterface it will convert these to simple arrays |
||
| 16 | * Also it will remove values that are null or empty arrays |
||
| 17 | * |
||
| 18 | * @param array $payload |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public static function simplePayload(array $payload) : array |
||
| 42 | } |
||
| 43 |