1 | <?php |
||
4 | abstract class Payload implements PayloadInterface |
||
5 | { |
||
6 | /** |
||
7 | * @inheritdoc |
||
8 | */ |
||
9 | 3 | public function getPayload(): array |
|
10 | { |
||
11 | 3 | return []; |
|
12 | } |
||
13 | |||
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, empty string or empty arrays |
||
17 | * |
||
18 | * @param array $payload |
||
19 | * @return array |
||
20 | */ |
||
21 | public static function simplePayload(array $payload) : array |
||
54 | } |
||
55 |