ForumTopicCreated::setIconCustomEmojiId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace TelegramBot\Api\Types;
4
5
use TelegramBot\Api\BaseType;
6
use TelegramBot\Api\TypeInterface;
7
8
/**
9
 * class ForumTopicCreated.
10
 * This object represents a service message about a new forum topic created in the chat.
11
 *
12
 * @package TelegramBot\Api\Types
13
 * @author bernard-ng <[email protected]>
14
 */
15
class ForumTopicCreated extends BaseType implements TypeInterface
16
{
17
    /**
18
     * {@inheritdoc}
19
     *
20
     * @var array
21
     */
22
    protected static $requiredParams = ['name', 'icon_color'];
23
24
    /**
25
     * {@inheritdoc}
26
     *
27
     * @var array
28
     */
29
    protected static $map = [
30
        'name' => true,
31
        'icon_color' => true,
32
        'icon_custom_emoji_id' => true,
33
    ];
34
35
    /**
36
     * Name of the forum topic
37
     *
38
     * @var string
39
     */
40
    protected $name;
41
42
    /**
43
     * Color of the forum topic
44
     *
45
     * @var string
46
     */
47
    protected $iconColor;
48
49
    /**
50
     * Custom emoji of the forum topic
51
     *
52
     * @var string
53
     */
54
    protected $iconCustomEmojiId;
55
56
    /**
57
     * @return string
58
     */
59
    public function getName()
60
    {
61
        return $this->name;
62
    }
63
64
    /**
65
     * @param string $name
66
     * @return void
67
     */
68
    public function setName($name)
69
    {
70
        $this->name = $name;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getIconColor()
77
    {
78
        return $this->iconColor;
79
    }
80
81
    /**
82
     * @param string $iconColor
83
     * @return void
84
     */
85
    public function setIconColor($iconColor)
86
    {
87
        $this->iconColor = $iconColor;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getIconCustomEmojiId()
94
    {
95
        return $this->iconCustomEmojiId;
96
    }
97
98
    /**
99
     * @param string $iconCustomEmojiId
100
     * @return void
101
     */
102
    public function setIconCustomEmojiId($iconCustomEmojiId)
103
    {
104
        $this->iconCustomEmojiId = $iconCustomEmojiId;
105
    }
106
}
107