Telegram::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram;
6
7
use Psr\Container\ContainerInterface;
8
use React\Http\Browser;
9
10
/**
11
 *
12
 */
13
class Telegram
14
{
15
    use TelegramTrait;
0 ignored issues
show
Bug introduced by
The trait Zanzara\Telegram\TelegramTrait requires the property $result which is not provided by Zanzara\Telegram\Telegram.
Loading history...
16
17
    /**
18
     * Telegram constructor.
19
     * @param ContainerInterface $container
20
     */
21
    public function __construct(ContainerInterface $container)
22
    {
23
        $this->container = $container;
24
        $this->browser = $container->get(Browser::class);
25
    }
26
27
}
28