Completed
Push — master ( 022616...175363 )
by Alex
08:53
created

TestView::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
namespace Mezon\Application\Tests;
3
4
/**
5
 * View class
6
 *
7
 * @author Dodonov A.A.
8
 */
9
class TestView extends \Mezon\Application\View
10
{
11
12
    public function __construct(string $content)
13
    {
14
        parent::__construct(null, 'default');
15
16
        $this->content = $content;
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
17
    }
18
19
    public function render(string $viewName = ''): string
20
    {
21
        return $this->content;
22
    }
23
}
24