Passed
Push — feature/0.7.0 ( ee8bff...c0ce41 )
by Ryuichi
44:29
created

ValidateTestController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A required() 0 3 1
1
<?php
2
namespace WebStream\Test\Controller;
3
4
use WebStream\Core\CoreController;
5
use WebStream\Annotation\Attributes\Validate;
6
7
class ValidateTestController extends CoreController
8
{
9
    /**
10
     * @Validate(key="test", rule="required", method="get")
11
     */
12
    public function required()
13
    {
14
        echo $this->request->get['test'];
15
    }
16
}
17