Passed
Push — master ( c74e83...4330b5 )
by test
02:39
created

TagParameter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 31
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setValue() 0 4 1
A setTag() 0 4 1
1
<?php
2
3
namespace EasyIM\TencentIM\Kernel\Parameter;
4
5
use EasyIM\Kernel\Parameter;
6
7
class TagParameter extends Parameter
8
{
9
    protected $properties = [
10
        'Tag',
11
        'Value'
12
    ];
13
14
    protected $required = ['Tag', 'Value'];
15
16
    /**
17
     *
18
     * @param string $value
19
     *
20
     * @return $this
21
     */
22
    public function setTag(string $value)
23
    {
24
        $this->setAttribute('Tag', $value);
25
        return $this;
26
    }
27
28
    /**
29
     *
30
     * @param mixed $value
31
     *
32
     * @return $this
33
     */
34
    public function setValue($value)
35
    {
36
        $this->setAttribute('Value', $value);
37
        return $this;
38
    }
39
}
40