Completed
Push — master ( 31e71a...26dc26 )
by Camilo
02:34
created

AbstractTelegramMethods   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\InternalFunctionality;
6
7
/**
8
 * Methods that all Telegram methods should implement
9
 */
10
abstract class AbstractTelegramMethods implements MethodDefinitions
11
{
12
    /**
13
     * Most of the methods will return a Message object on success, so set that as default.
14
     *
15
     * @return string
16
     */
17 15
    public static function bindToObjectType(): string
18
    {
19 15
        return 'Message';
20
    }
21
}
22