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

ConfigFileException::platformFile()   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 2
1
<?php
2
3
namespace CSlant\TelegramGitNotifier\Exceptions;
4
5
final class ConfigFileException extends TelegramGitNotifierException
6
{
7
    public static function settingFile(?string $settingFile = null): self
8
    {
9
        return new self('Something went wrong while reading settings file. Check your settings file path: ' . ($settingFile ?? 'null'));
10
    }
11
12
    public static function platformFile(?string $platform = null, ?string $platformFile = null): self
13
    {
14
        return new self('Something went wrong while reading platform file. Check your platform file path: ' . ($platformFile ?? 'null') . ' for platform: ' . ($platform ?? 'null'));
15
    }
16
}
17