Completed
Push — master ( fe0508...11cb26 )
by Kirill
02:20
created

BuktopuhaBotApi   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A setToken() 0 4 1
1
<?php
2
namespace Chrl\AppBundle;
3
4
5
use Symfony\Component\DependencyInjection\Container;
6
use TelegramBot\Api\BotApi;
7
8
class BuktopuhaBotApi extends BotApi
9
{
10
	public function __construct(Container $container)
11
	{
12
		$token = $container->getParameter('buktopuha.config');
13
		parent::__construct($token['token']);
14
	}
15
16
	/**
17
	 * @param string $token
18
	 */
19
	public function setToken($token)
20
	{
21
		$this->token = $token;
22
	}
23
}