Completed
Branch master (3ee61a)
by Patrick
03:04
created

Serializer   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 16
rs 10
wmc 3
lcom 1
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A supportsType() 0 11 3
1
<?php
2
namespace Serialize;
3
4
abstract class Serializer implements ISerializer
5
{
6
    protected $types;
7
8
    public function supportsType($type)
9
    {
10
        foreach($this->types as $t)
11
        {
12
            if(strcasecmp($t, $type) === 0)
13
            {
14
                return true;
15
            }
16
        }
17
        return false;
18
    }
19
}
20