Completed
Push — master ( 58d973...681a3d )
by
unknown
05:43
created

AbstractSerializer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A supportsFormat() 0 4 1
A getSupportedFormats() 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
    public function supportsFormat($format)
12
    {
13
        return in_array($format, $this->getSupportedFormats());
14
    }
15
16
    /**
17
     * @return array
18
     */
19
    public function getSupportedFormats()
20
    {
21
        return [];
22
    }
23
}
24