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

AbstractTelegramMethods::bindToObjectType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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