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

AndroidInfo   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 33
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
    public function setSound(string $value)
31
    {
32
        $this->setAttribute('Sound', $value);
33
        return $this;
34
    }
35
36
    /**
37
     *
38
     * @param string $value
39
     *
40
     * @return $this
41
     */
42
    public function setOPPOChannelID(string $value)
43
    {
44
        $this->setAttribute('OPPOChannelID', $value);
45
        return $this;
46
    }
47
}
48