Passed
Push — master ( 141183...2b56eb )
by Petr
08:03
created

FileUser::getGroup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace kalanis\kw_auth\Data;
4
5
6
use kalanis\kw_auth\Interfaces\IUser;
7
8
9
/**
10
 * Class FileUser
11
 * @package kalanis\kw_auth\Data
12
 */
13
class FileUser implements IUser
14
{
15
    /** @var int */
16
    protected $authId = 0;
17
    /** @var string */
18
    protected $authName = '';
19
    /** @var int */
20
    protected $authGroup = 0;
21
    /** @var int */
22
    protected $authClass = 0;
23
    /** @var int|null */
24
    protected $authStatus = null;
25
    /** @var string */
26
    protected $displayName = '';
27
    /** @var string */
28
    protected $dir = '';
29
30 39
    public function setData(int $authId, string $authName, int $authGroup, int $authClass, ?int $authStatus, string $displayName, string $dir): void
31
    {
32 39
        $this->authId = $authId;
33 39
        $this->authName = $authName;
34 39
        $this->authGroup = $authGroup;
35 39
        $this->authClass = $authClass;
36 39
        $this->authStatus = $authStatus;
37 39
        $this->displayName = $displayName;
38 39
        $this->dir = $dir;
39 39
    }
40
41 7
    public function getAuthId(): int
42
    {
43 7
        return $this->authId;
44
    }
45
46 30
    public function getAuthName(): string
47
    {
48 30
        return $this->authName;
49
    }
50
51 9
    public function getGroup(): int
52
    {
53 9
        return $this->authGroup;
54
    }
55
56 13
    public function getClass(): int
57
    {
58 13
        return $this->authClass;
59
    }
60
61 11
    public function getStatus(): ?int
62
    {
63 11
        return $this->authStatus;
64
    }
65
66 27
    public function getDisplayName(): string
67
    {
68 27
        return $this->displayName;
69
    }
70
71 19
    public function getDir(): string
72
    {
73 19
        return $this->dir;
74
    }
75
}
76