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

BuktopuhaBotApi::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
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
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
}