Completed
Push — fetcher_factories ( 10a56f...fd93ea )
by David
13:44
created

TestFilteredController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
1
<?php
2
3
namespace Mouf\Mvc\Splash\Fixtures;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
use Zend\Diactoros\Response\HtmlResponse;
7
use Zend\Diactoros\Response\JsonResponse;
8
use Mouf\Mvc\Splash\Annotations\URL;
9
10
/**
11
 * @TestFilter(id=24, foo="bar")
12
 */
13
class TestFilteredController
14
{
15
    /**
16
     * @URL("/foo")
17
     * @TestFilter(id=42)
18
     */
19
    public function index($id, $foo)
20
    {
21
        return new HtmlResponse((string) $id.$foo);
22
    }
23
}
24