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

Test1Controller::test1()   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 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