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

LdapMapper::setMap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
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