ChatMessage::setExternalUserName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Mremi\Flowdock library.
5
 *
6
 * (c) Rémi Marseille <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mremi\Flowdock\Api\Push;
13
14
/**
15
 * Chat message class
16
 *
17
 * @author Rémi Marseille <[email protected]>
18
 */
19
class ChatMessage extends BaseMessage implements ChatMessageInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $externalUserName;
25
26
    /**
27
     * @var integer
28
     */
29
    protected $messageId;
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function setExternalUserName($externalUserName)
35
    {
36
        $this->externalUserName = $externalUserName;
37
38
        return $this;
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function getExternalUserName()
45
    {
46
        return $this->externalUserName;
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function setMessageId($messageId)
53
    {
54
        $this->messageId = $messageId;
55
56
        return $this;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function getMessageId()
63
    {
64
        return $this->messageId;
65
    }
66
}
67