Completed
Push — fetcher_factories ( 40fc6e...10a56f )
by David
02:17
created

TestFilteredController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
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