CannotHandleThemeDescriptorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A cannotHandleDescriptorClass() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\CMS\Theme;
5
6
7
use TheCodingMachine\CMS\CMSException;
8
9
class CannotHandleThemeDescriptorException extends CMSException implements CannotHandleThemeDescriptorExceptionInterface
10
{
11
12
    public static function cannotHandleDescriptorClass(string $themeType): CannotHandleThemeDescriptorException
13
    {
14
        return new self(sprintf('Cannot handle the theme descriptor class "%s"', $themeType));
15
    }
16
}
17