AndroidInfo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 33
ccs 6
cts 6
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSound() 0 4 1
A setOPPOChannelID() 0 4 1
1
<?php
2
3
namespace EasyIM\TencentIM\Kernel\OfflinePushInfo;
4
5
use EasyIM\Kernel\Parameter;
6
7
/**
8
 * Class AndroidInfo
9
 *
10
 * @package EasyIM\TencentIM\Kernel\OfflinePushInfo
11
 * @author  longing <[email protected]>
12
 */
13
class AndroidInfo extends Parameter
14
{
15
    /**
16
     * @var string[]
17
     */
18
    protected $properties = [
19
        'Sound',
20
        'OPPOChannelID',
21
    ];
22
23
24
    /**
25
     *
26
     * @param string $value
27
     *
28
     * @return $this
29
     */
30 2
    public function setSound(string $value)
31
    {
32 2
        $this->setAttribute('Sound', $value);
33 2
        return $this;
34
    }
35
36
    /**
37
     *
38
     * @param string $value
39
     *
40
     * @return $this
41
     */
42 2
    public function setOPPOChannelID(string $value)
43
    {
44 2
        $this->setAttribute('OPPOChannelID', $value);
45 2
        return $this;
46
    }
47
}
48