Completed
Push — master ( 26dc26...9f091f )
by Camilo
02:31
created

TelegramMethods   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A bindToObjectType() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace unreal4u\Abstracts;
6
7
use unreal4u\Interfaces\TelegramMethodDefinitions;
8
9
/**
10
 * Contains methods that all Telegram methods should implement
11
 */
12
abstract class TelegramMethods implements TelegramMethodDefinitions
13
{
14
    /**
15
     * Most of the methods will return a Message object on success, so set that as default.
16
     *
17
     * @return string
18
     */
19 15
    public static function bindToObjectType(): string
20
    {
21 15
        return 'Message';
22
    }
23
}
24