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

ConfigException::configDoesNotExist()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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