Completed
Push — master ( 6136fb...fca5a7 )
by Alex
02:20
created

LoaderException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A notFound() 0 8 1
1
<?php
2
3
namespace Asmaster\EquipTwig\Exception;
4
5
use Twig_Error_Loader as TwigErrorLoader;
6
7
class LoaderException extends TwigErrorLoader
8
{
9
    /**
10
     * @param name   $name  The template name
11
     * @param string $where The template directory path
12
     *
13
     * @return static
14
     */
15 1
    public static function notFound($name, $where)
16
    {
17 1
        throw new static(sprintf(
18 1
            'Unable to find template `%s` (looked into: %s).',
19
            $name,
20
            $where
21
        ));
22
    }
23
}
24
25