Completed
Push — master ( a71648...4666df )
by Алексей
06:15
created

GetMe::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: akeinhell
5
 * Date: 30.06.16
6
 * Time: 15:14
7
 */
8
9
namespace Telegram\Methods;
10
11
12
use Telegram\Base\BaseMethod;
13
use Telegram\Bot;
14
15
class GetMe extends BaseMethod
16
{
17
    /**
18
     * @var Bot
19
     */
20
    private $botInstance;
21
22
    /**
23
     * GetMe constructor.
24
     * @param $botInstance
25
     */
26
    public function __construct(&$botInstance)
27
    {
28
        $this->botInstance = &$botInstance;
29
    }
30
31
    public function __invoke()
32
    {
33
        return $this->botInstance->send('getMe', []);
34
    }
35
}