Passed
Push — master ( d309df...7ec489 )
by Petr
02:37
created

LdapMapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

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