ViewException::noTemplateSet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace Phauthentic\Presentation\View\Exception;
5
6
use Psr\Container\ContainerInterface;
7
use RuntimeException;
8
9
/**
10
 * Helper Aware View
11
 *
12
 * Some MVC Frameworks implement "view helpers". Objects that can be accessed
13
 * in the view layer to fulfill some view specific tasks that aren't application
14
 * logic.
15
 *
16
 * This class is simple extension to the default view object that takes a
17
 * PSR compatible container object from which we retrieve helper objects
18
 * through php's magic __get().
19
 */
20
class ViewException extends RuntimeException
21
{
22
    public static function noLayoutSet()
23
    {
24
        return new self('No layout specified for view');
25
    }
26
27
    public static function noTemplateSet()
28
    {
29
        return new self('No template specified for view');
30
    }
31
}
32