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

LoaderException::notFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
crap 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