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

TagParameter::setTag()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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