Completed
Pull Request — master (#171)
by
unknown
02:33
created

Conversation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 1
c 3
b 1
f 1
lcom 1
cbo 1
dl 0
loc 20
ccs 0
cts 4
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A make() 0 7 1
handle() 0 1 ?
1
<?php
2
3
namespace Telegram\Bot\Conversations;
4
5
use Telegram\Bot\Answers\Answerable;
6
use Telegram\Bot\Api;
7
use Telegram\Bot\Objects\Update;
8
9
/**
10
 * Class Conversation
11
 */
12
abstract class Conversation implements ConversationInterface
13
{
14
    use Answerable;
15
16
    /**
17
     * @inheritdoc
18
     */
19
    public function make(Api $telegram, Update $update)
20
    {
21
        $this->telegram = $telegram;
22
        $this->update = $update;
23
24
        return $this->handle();
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    abstract public function handle();
31
}
32