Completed
Push — master ( 8e8a04...31fb68 )
by Marco
38:43 queued 23:45
created

AbstractProcessor::encode()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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