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