EmojisVariableTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 15
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A addEmoji() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Greenplugin\TelegramBot\Method\Traits;
6
7
/**
8
 * Trait EmojisVariableTrait.
9
 */
10
trait EmojisVariableTrait
11
{
12
    /**
13
     * One or more emoji corresponding to the sticker.
14
     *
15
     * @var string
16
     */
17
    public $emojis;
18
19
    /**
20
     * @param string $emoji
21
     */
22
    public function addEmoji(string $emoji)
23
    {
24
        $this->emojis .= $emoji;
25
    }
26
}
27