NullView::addGlobal()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Selami\View\NullView;
5
6
use Selami\View\ViewInterface;
7
use Psr\Container\ContainerInterface;
8
9
class NullView implements ViewInterface
10
{
11
    public function __construct()
12
    {
13
    }
14
15
    public static function viewFactory(ContainerInterface $container, array $config) : ViewInterface
16
    {
17
        return new self();
18
    }
19
20
    public function addGlobal(string $name, $value) : void
21
    {
22
    }
23
24
    public function render(string $templateFile, array $parameters = []) : string
25
    {
26
        return $templateFile;
27
    }
28
}
29