NotSupportedDatabaseException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A notSupportedPlatform() 0 6 1
1
<?php
2
3
namespace Potievdev\SlimRbac\Exception;
4
5
class NotSupportedDatabaseException extends BaseException
6
{
7
    public static function notSupportedPlatform(string $platformName): self
8
    {
9
        $e = new self("Not supported database platform.");
10
        $e->additionalParams = ['platformName' => $platformName];
11
12
        return $e;
13
    }
14
}