1 | <?php |
||
37 | class PriorityDelegate implements Prioritized |
||
38 | { |
||
39 | /** |
||
40 | * @var \Psr\Http\Server\MiddlewareInterface |
||
41 | */ |
||
42 | private $delegate; |
||
43 | /** |
||
44 | * @var int |
||
45 | */ |
||
46 | private $priority; |
||
47 | |||
48 | /** |
||
49 | * Creates a new `PriorityDelegate`. |
||
50 | * |
||
51 | * @param \Psr\Http\Server\MiddlewareInterface $delegate The middleware to delegate |
||
52 | * @param int $priority The priority |
||
53 | */ |
||
54 | 1 | public function __construct(MiddlewareInterface $delegate, int $priority) |
|
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | 1 | public function getPriority(): int |
|
67 | |||
68 | /** |
||
69 | * {@inheritDoc} |
||
70 | */ |
||
71 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
75 | } |
||
76 |