| 1 | <?php |
||
| 10 | final class LoggableRpcClient implements RpcClientInterface |
||
| 11 | { |
||
| 12 | /** @var LoggerInterface */ |
||
| 13 | private $logger; |
||
| 14 | /** @var RpcClientInterface */ |
||
| 15 | private $decoratedClient; |
||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | private $debug; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * LoggableRpcClient constructor. |
||
| 23 | * |
||
| 24 | * @param RpcClientInterface $decoratedClient |
||
| 25 | * @param LoggerInterface $logger |
||
| 26 | * @param bool $debug |
||
| 27 | */ |
||
| 28 | 5 | public function __construct(RpcClientInterface $decoratedClient, LoggerInterface $logger = null, $debug = false) |
|
| 34 | |||
| 35 | /** {@inheritdoc} */ |
||
| 36 | 5 | public function invoke($calls) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @param $call |
||
| 56 | * |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | 5 | private function getContext($call) |
|
| 67 | } |
||
| 68 |