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

TelegramMethods::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\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