Passed
Push — feature/0.7.0 ( 54b1aa...9c1bf9 )
by Ryuichi
44:30
created

Test1Controller   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 3 1
A test1() 0 3 1
1
<?php
2
namespace WebStream\Test\Controller;
3
4
use WebStream\Core\CoreController;
5
use WebStream\Annotation\Base\IAnnotatable;
6
use WebStream\Annotation\Attributes\Filter;
7
use WebStream\Annotation\Attributes\Header;
8
9
class Test1Controller extends CoreController
10
{
11
    /**
12
     * @Filter(type="before")
13
     */
14
    public function init()
15
    {
16
        echo "init";
17
    }
18
19
    /**
20
     * @Header(allowMethod="get")
21
     */
22
    public function test1()
23
    {
24
        echo "test1";
25
    }
26
}
27