Passed
Push — master ( 8a85d8...f1d9cd )
by Alex
10:07
created

TestingPresenter::presenterFromConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Mezon\Application\Tests;
3
4
use Mezon\Application\Presenter;
5
6
/**
7
 * Presenter class for testing purposes
8
 *
9
 * @author Dodonov A.A.
10
 */
11
class TestingPresenter extends Presenter
12
{
13
14
    public function presenterTest(): string
15
    {
16
        return 'computed content';
17
    }
18
19
    public function presenterTest2(): string
20
    {
21
        return 'computed content 2';
22
    }
23
24
    public $wasCalled = false;
25
26
    public function presenterResult(): void
27
    {
28
        $this->wasCalled = true;
29
    }
30
    
31
    public static $actionPresenterFromConfigWasCalled = false;
32
    
33
    public function presenterFromConfig(): void
34
    {
35
        TestingPresenter::$actionPresenterFromConfigWasCalled = true;
36
    }
37
}
38