Completed
Push — master ( a15a3c...decc90 )
by
unknown
04:44
created

AbstractSerializer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSupportedFormats() 0 4 1
A supportsFormat() 0 4 1
1
<?php
2
3
namespace MediaMonks\RestApiBundle\Serializer;
4
5
abstract class AbstractSerializer
6
{
7
    /**
8
     * @param $format
9
     * @return bool
10
     */
11 4
    public function supportsFormat($format)
12
    {
13 4
        return in_array($format, $this->getSupportedFormats());
14
    }
15
16
    /**
17
     * @return array
18
     */
19
    public function getSupportedFormats()
20
    {
21
        return [];
22
    }
23
}
24