| Total Complexity | 12 |
| Total Lines | 85 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Test1Controller extends CoreController |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @Filter(type="before") |
||
| 18 | */ |
||
| 19 | public function before() |
||
| 20 | { |
||
| 21 | echo "b1"; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @Filter(type="after") |
||
| 26 | */ |
||
| 27 | public function after() |
||
| 28 | { |
||
| 29 | echo "a1"; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @Template("test1.tmpl") |
||
| 34 | */ |
||
| 35 | public function test1() |
||
| 36 | { |
||
| 37 | } |
||
| 38 | |||
| 39 | public function test2() |
||
| 40 | { |
||
| 41 | $this->Test1->test1(); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @Header(allowMethod="post") |
||
| 46 | */ |
||
| 47 | public function test3() |
||
| 49 | } |
||
| 50 | |||
| 51 | public function test4() |
||
| 52 | { |
||
| 53 | throw new ForbiddenAccessException("error"); |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @ExceptionHandler("WebStream\Exception\Extend\ForbiddenAccessException") |
||
| 58 | */ |
||
| 59 | public function test4Error($params) |
||
| 60 | { |
||
| 61 | echo $params['method']; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @Alias(name="test5") |
||
| 66 | */ |
||
| 67 | public function test5Alias() |
||
| 68 | { |
||
| 69 | echo "t5"; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @Validate(key="test", rule="required", method="get") |
||
| 74 | */ |
||
| 75 | public function test6() |
||
| 76 | { |
||
| 77 | echo "t6"; |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @Validate(key="test", rule="length[3]") |
||
| 82 | */ |
||
| 83 | public function test7() |
||
| 84 | { |
||
| 85 | echo "t7"; |
||
| 86 | } |
||
| 87 | |||
| 88 | public function test9() |
||
| 90 | |||
| 91 | } |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @CustomControllerAnnotation(name="t10") |
||
| 95 | */ |
||
| 96 | public function test10() |
||
| 99 | } |
||
| 100 | } |
||
| 101 |