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

TestingController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 18
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A controllerTest2() 0 3 1
A controllerResult() 0 3 1
A controllerTest() 0 3 1
1
<?php
2
namespace Mezon\Application\Tests;
3
4
use Mezon\Application\Controller;
5
6
class TestingController extends Controller
0 ignored issues
show
Deprecated Code introduced by
The class Mezon\Application\Controller has been deprecated: since 2020-06-26 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

6
class TestingController extends /** @scrutinizer ignore-deprecated */ Controller
Loading history...
7
{
8
9
    public function controllerTest(): string
10
    {
11
        return 'computed content';
12
    }
13
    
14
    public function controllerTest2(): string
15
    {
16
        return 'computed content 2';
17
    }
18
19
    public $wasCalled = false;
20
    
21
    public function controllerResult(): void
22
    {
23
        $this->wasCalled = true;
24
    }
25
}
26