Completed
Push — master ( 5a8248...de4c72 )
by Nikolay
03:57
created

BotApiComplete   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 19
dl 0
loc 27
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TgBotApi\BotApiBase;
6
7
use TgBotApi\BotApiBase\Traits\AddMethodTrait;
8
use TgBotApi\BotApiBase\Traits\AnswerMethodTrait;
9
use TgBotApi\BotApiBase\Traits\CreateMethodTrait;
10
use TgBotApi\BotApiBase\Traits\DeleteMethodTrait;
11
use TgBotApi\BotApiBase\Traits\EditMethodTrait;
12
use TgBotApi\BotApiBase\Traits\ForwardMethodTrait;
13
use TgBotApi\BotApiBase\Traits\KickMethodTrait;
14
use TgBotApi\BotApiBase\Traits\LeaveMethodTrait;
15
use TgBotApi\BotApiBase\Traits\PinMethodTrait;
16
use TgBotApi\BotApiBase\Traits\PromoteMethodTrait;
17
use TgBotApi\BotApiBase\Traits\RestrictMethodTrait;
18
use TgBotApi\BotApiBase\Traits\SendMethodTrait;
19
use TgBotApi\BotApiBase\Traits\SetMethodTrait;
20
use TgBotApi\BotApiBase\Traits\StopMethodTrait;
21
use TgBotApi\BotApiBase\Traits\UnbanMethodTrait;
22
use TgBotApi\BotApiBase\Traits\UnpinMethodTrait;
23
use TgBotApi\BotApiBase\Traits\UploadMethodTrait;
24
25
/**
26
 * Class BotApiComplete.
27
 */
28
class BotApiComplete extends BotApi
29
{
30
    use AddMethodTrait;
31
    use AnswerMethodTrait;
32
    use CreateMethodTrait;
33
    use DeleteMethodTrait;
34
    use EditMethodTrait;
35
    use ForwardMethodTrait;
36
    use KickMethodTrait;
37
    use LeaveMethodTrait;
38
    use PinMethodTrait;
39
    use PromoteMethodTrait;
40
    use RestrictMethodTrait;
41
    use SendMethodTrait;
42
    use SetMethodTrait;
43
    use StopMethodTrait;
44
    use UnbanMethodTrait;
45
    use UnpinMethodTrait;
46
    use UploadMethodTrait;
47
48 65
    public function __construct(
49
        string $botKey,
50
        ApiClientInterface $apiClient,
51
        NormalizerInterface $normalizer,
52
        string $endPoint = 'https://api.telegram.org'
53
    ) {
54 65
        parent::__construct($botKey, $apiClient, $normalizer, $endPoint);
55 65
    }
56
}
57