Total Complexity | 4 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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) |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @param int $value |
||
72 | * |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function setUnreadMsgNum(int $value) |
||
82 |