| 1 | <?php |
||
| 13 | class Payload |
||
| 14 | { |
||
| 15 | use Utils\ResolverTrait; |
||
| 16 | |||
| 17 | /** @var mixed[] */ |
||
| 18 | private $options; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Payload constructor. |
||
| 22 | * @param mixed[] $options |
||
| 23 | */ |
||
| 24 | public function __construct(array $options = []) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Execute the middleware. |
||
| 31 | * |
||
| 32 | * @param ServerRequestInterface $request |
||
| 33 | * @param ResponseInterface $response |
||
| 34 | * @param callable $next |
||
| 35 | * |
||
| 36 | * @return ResponseInterface |
||
| 37 | */ |
||
| 38 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
| 55 | } |
||
| 56 |