TagParameter::setTag()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
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 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