Completed
Branch 2.0 (7b6aa1)
by Marco
14:49
created

AbstractProcessor::encode()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
nc 1
1
<?php namespace Comodojo\RpcClient\Processor;
2
3
use Comodojo\RpcClient\Components\Encoding as EncodingTrait;
4
use \Psr\Log\LoggerInterface;
5
6
abstract class AbstractProcessor implements ProcessorInterface {
7
8
    use EncodingTrait;
9
10
    protected $logger;
11
12 51
    public function __construct($encoding, LoggerInterface $logger) {
13
14 51
        $this->setEncoding($encoding);
15
16 51
        $this->logger = $logger;
17
18 51
    }
19
20
    abstract public function encode($requests);
21
22
    abstract public function decode($response);
23
24
}
25