NullView   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A viewFactory() 0 4 1
A addGlobal() 0 3 1
A render() 0 4 1
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