TagParameter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 31
ccs 6
cts 6
cp 1
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 1
    public function setTag(string $value)
23
    {
24 1
        $this->setAttribute('Tag', $value);
25 1
        return $this;
26
    }
27
28
    /**
29
     *
30
     * @param mixed $value
31
     *
32
     * @return $this
33
     */
34 1
    public function setValue($value)
35
    {
36 1
        $this->setAttribute('Value', $value);
37 1
        return $this;
38
    }
39
}
40