AbstractSerializer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
4
namespace Retrinko\Serializer\Serializers;
5
6
use Retrinko\Serializer\Interfaces\SerializerInterface;
7
8
abstract class AbstractSerializer implements SerializerInterface
9
{
10
    /**
11
     * @var array
12
     */
13
    protected $options = [];
14
15
    /**
16
     * AbstractSerializer constructor.
17
     *
18
     * @param array $options
19
     */
20 12
    public function __construct(array $options = [])
21
    {
22 12
        $this->options = $options;
23
    }
24
}