Completed
Pull Request — dev (#11)
by
unknown
04:51
created

AbstractEncoder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 0
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Vectorface\SnappyRouter\Encoder;
4
5
use Vectorface\SnappyRouter\Response\AbstractResponse;
6
7
/**
8
 * An abstract base class for all encoders. Extend this class to implement a
9
 * custom encoder.
10
 * @copyright Copyright (c) 2014, VectorFace, Inc.
11
 * @author Dan Bruce <[email protected]>
12
 */
13
abstract class AbstractEncoder implements EncoderInterface
14
{
15
    // an array of options for the encoder
16
    private $options;
17
18
    /**
19
     * Constructor for the encoder.
20
     * @param array $options An array of encoder options.
21
     */
22 33
    public function __construct($options = array())
23
    {
24 33
        $this->options = (array)$options;
25 33
    }
26
}
27