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

FileUser   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 22
c 1
b 0
f 0
dl 0
loc 61
ccs 23
cts 23
cp 1
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getGroup() 0 3 1
A getClass() 0 3 1
A getDir() 0 3 1
A getStatus() 0 3 1
A getAuthId() 0 3 1
A getAuthName() 0 3 1
A setData() 0 9 1
A getDisplayName() 0 3 1
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