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

GetMe   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __invoke() 0 4 1
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
}