1 | <?php |
||
7 | abstract class Callback implements CallbackInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var ServerRequestInterface |
||
11 | */ |
||
12 | protected $request; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $body; |
||
18 | |||
19 | 24 | public function __construct(ServerRequestInterface $request) |
|
26 | |||
27 | /** |
||
28 | * Takes a ServerRequestInterface and returns the body as an array |
||
29 | * |
||
30 | * @param ServerRequestInterface $request |
||
31 | * @return array |
||
32 | */ |
||
33 | 45 | public static function getBodyFromRequest(ServerRequestInterface $request) : array |
|
38 | } |
||
39 |