LdapMapper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setMap() 0 7 1
1
<?php
2
3
namespace kalanis\kw_auth_sources\Sources\Mapper\Ldap;
4
5
6
use kalanis\kw_mapper\Mappers\Database\ALdap;
7
8
9
/**
10
 * Class LdapMapper
11
 * @package kalanis\kw_auth_sources\Sources\Mapper\Ldap
12
 * @codeCoverageIgnore remote source
13
 */
14
class LdapMapper extends ALdap
15
{
16 1
    protected function setMap(): void
17
    {
18 1
        $this->setSource('ldap');
19 1
        $this->setTable('user');
20 1
        $this->setRelation('id', 'id');
21 1
        $this->setRelation('name', 'name');
22 1
        $this->addPrimaryKey('id');
23 1
    }
24
}
25