Passed
Push — main ( 2583e6...762d60 )
by Tan
07:53 queued 06:04
created

WebhookException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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