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

AbstractProcessor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
encode() 0 1 ?
decode() 0 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