Message::getMsgId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the slince/smartqq package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Slince\SmartQQ\Message;
12
13
class Message implements MessageInterface
14
{
15
    /**
16
     * @var Content
17
     */
18
    protected $content;
19
20
    /**
21
     * 消息id.
22
     *
23
     * @var int
24
     */
25
    protected $msgId;
26
27
    /**
28
     * AbstractMessage constructor.
29
     *
30
     * @param Content $content 消息内容
31
     * @param int     $msgId   消息id
32
     */
33
    public function __construct(Content $content, $msgId)
34
    {
35
        $this->content = $content;
36
        $this->msgId = $msgId;
37
    }
38
39
    /**
40
     * @param Content $content
41
     */
42
    public function setContent($content)
43
    {
44
        $this->content = $content;
45
    }
46
47
    /**
48
     * @param int $msgId
49
     */
50
    public function setMsgId($msgId)
51
    {
52
        $this->msgId = $msgId;
53
    }
54
55
    /**
56
     * @return Content
57
     */
58
    public function getContent()
59
    {
60
        return $this->content;
61
    }
62
63
    /**
64
     * @return int
65
     */
66
    public function getMsgId()
67
    {
68
        return $this->msgId;
69
    }
70
}
71