1 | <?php |
||
8 | class CallableToDelegateAdapter implements DelegateInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var callable |
||
12 | */ |
||
13 | private $adaptee; |
||
14 | |||
15 | /** |
||
16 | * @param callable $adaptee |
||
17 | */ |
||
18 | 2 | public function __construct(callable $adaptee) |
|
22 | |||
23 | /** |
||
24 | * Process the request using a callable. |
||
25 | * |
||
26 | * @param RequestInterface $request |
||
27 | * |
||
28 | * @return ResponseInterface |
||
29 | */ |
||
30 | 2 | public function process(RequestInterface $request) |
|
36 | } |
||
37 |