TelegramGitNotifierException::invalid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CSlant\TelegramGitNotifier\Exceptions;
4
5
use Exception;
6
7
class TelegramGitNotifierException extends Exception
8
{
9
    public static function isEmpty(): self
10
    {
11
        return new self('Telegram Git Notifier is empty');
12
    }
13
14
    public static function invalid(): self
15
    {
16
        return new self('Telegram Git Notifier is invalid');
17
    }
18
}
19