Completed
Push — master ( 3a5159...5d8648 )
by Marko
14:57
created

ConfigException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configDoesNotExist() 0 3 1
A invalidDefaultConfig() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the FOSCKEditor Bundle.
5
 *
6
 * (c) 2018 - present  Friends of Symfony
7
 * (c) 2009 - 2017     Eric GELOEN <[email protected]>
8
 *
9
 * For the full copyright and license information, please read the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace FOS\CKEditorBundle\Exception;
14
15
/**
16
 * @author GeLo <[email protected]>
17
 */
18
class ConfigException extends Exception
19
{
20
    public static function configDoesNotExist(string $name): self
21
    {
22
        return new static(sprintf('The CKEditor config "%s" does not exist.', $name));
23
    }
24
25
    public static function invalidDefaultConfig(string $name): self
26
    {
27
        return new static(sprintf('The default config "%s" does not exist.', $name));
28
    }
29
}
30