Completed
Push — master ( ef4497...684c4e )
by Kirill
02:16
created

BuktopuhaBotApi::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace Chrl\AppBundle;
3
4
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
5
use Symfony\Component\DependencyInjection\ContainerInterface;
6
use TelegramBot\Api\BotApi;
7
8
class BuktopuhaBotApi extends BotApi
9
{
10
    public $token;
11
12
    public function __construct($config)
13
    {
14
        $this->token = $config['token'];
15
        parent::__construct($this->token);
16
    }
17
18
    /**
19
     * @param string $token
20
     */
21
    public function setToken($token)
22
    {
23
        $this->token = $token;
24
    }
25
}
26