| 1 | <?php |
||
| 19 | class PreAdapterSendEvent extends Event |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var TargetAdapterInterface Target adapter |
||
| 23 | */ |
||
| 24 | protected $target; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Request Request sent to adapter |
||
| 28 | */ |
||
| 29 | protected $request; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param TargetAdapterInterface $target Target adapter |
||
| 33 | * @param Request $request Request sent to adapter |
||
| 34 | */ |
||
| 35 | 7 | public function __construct(TargetAdapterInterface $target, Request $request) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Returns target adapter. |
||
| 43 | * |
||
| 44 | * @return TargetAdapterInterface Target adapter |
||
| 45 | */ |
||
| 46 | 1 | public function getTarget() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Returns request which is going to be sent to adapter. |
||
| 53 | * |
||
| 54 | * @return Request Request sent to adapter |
||
| 55 | */ |
||
| 56 | 5 | public function getRequest() |
|
| 60 | } |
||
| 61 |