ImportMemberParameter   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 66
ccs 0
cts 19
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setJoinTime() 0 5 1
A setRole() 0 5 1
A setMemberAccount() 0 5 1
A setUnreadMsgNum() 0 5 1
1
<?php
2
3
namespace EasyIM\TencentIM\Group\Parameter\Import;
4
5
use EasyIM\Kernel\Parameter;
6
7
/**
8
 * Class ImportMemberParameter
9
 *
10
 * @package EasyIM\TencentIM\Group\Parameter\Import
11
 * @author  yingzhan <[email protected]>
12
 *
13
 */
14
class ImportMemberParameter extends Parameter
15
{
16
    /**
17
     * @var array
18
     */
19
    protected $properties = [
20
        'Member_Account',
21
        'Role',
22
        'JoinTime',
23
        'UnreadMsgNum',
24
    ];
25
26
    protected $required = ['Member_Account'];
27
28
29
    /**
30
     *
31
     * @param string $value
32
     *
33
     * @return $this
34
     */
35
    public function setMemberAccount(string $value)
36
    {
37
        $this->setAttribute('Member_Account', $value);
38
39
        return $this;
40
    }
41
42
    /**
43
     *
44
     * @param string $value
45
     *
46
     * @return $this
47
     */
48
    public function setRole(string $value)
49
    {
50
        $this->setAttribute('Role', $value);
51
52
        return $this;
53
    }
54
55
56
    /**
57
     *
58
     * @param int $value
59
     *
60
     * @return $this
61
     */
62
    public function setJoinTime(int $value)
63
    {
64
        $this->setAttribute('JoinTime', $value);
65
66
        return $this;
67
    }
68
69
    /**
70
     *
71
     * @param int $value
72
     *
73
     * @return $this
74
     */
75
    public function setUnreadMsgNum(int $value)
76
    {
77
        $this->setAttribute('UnreadMsgNum', $value);
78
79
        return $this;
80
    }
81
}
82