Passed
Push — main ( ef2030...a17612 )
by Tan
15:25 queued 13:15
created

WebhookException::delete()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CSlant\TelegramGitNotifier\Exceptions;
4
5
final class WebhookException extends TelegramGitNotifierException
6
{
7
    public static function set(): self
8
    {
9
        return new self('Something went wrong while setting webhook. Check your bot token and app url!');
10
    }
11
12
    public static function delete(): self
13
    {
14
        return new self('Something went wrong while deleting webhook. Check your bot token and app url!');
15
    }
16
17
    public static function getUpdates(): self
18
    {
19
        return new self('Something went wrong while getting updates. Check your bot token and app url!');
20
    }
21
22
    public static function getWebHookInfo(): self
23
    {
24
        return new self('Something went wrong while getting webhook info. Check your bot token and app url!');
25
    }
26
}
27