EntityMapping   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A addMapperTo() 0 4 1
1
<?php
2
3
namespace LaravelDoctrine\Fluent;
4
5
use LaravelDoctrine\Fluent\Mappers\EntityMapper;
6
use LaravelDoctrine\Fluent\Mappers\MapperSet;
7
8
abstract class EntityMapping implements Mapping
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13 11
    public function addMapperTo(MapperSet $mappers)
14
    {
15 11
        $mappers->addMapper($this->mapFor(), new EntityMapper($this));
16 11
    }
17
}
18