1 | <?php namespace Comodojo\RpcClient\Processor; |
||
23 | abstract class AbstractProcessor implements ProcessorInterface { |
||
24 | |||
25 | use EncodingTrait; |
||
26 | |||
27 | protected $logger; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 63 | public function __construct($encoding, LoggerInterface $logger) { |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | abstract public function encode(array $requests); |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | abstract public function decode($response); |
||
49 | |||
50 | } |
||
51 |