Passed
Pull Request — master (#9)
by Pavel
12:36
created

RpcImplController::testAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 4
crap 1
1
<?php
2
3
namespace Bankiru\Api\Rpc\Test\Rpc;
4
5
use Bankiru\Api\Rpc\Routing\Annotation\Method;
6
use Bankiru\Api\Rpc\Test\Impl\Response;
7
use ScayTrase\Api\Rpc\RpcRequestInterface;
8
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9
10
final class RpcImplController extends Controller
11
{
12
    /**
13
     * @param string              $noDefault
14
     * @param string              $default
15
     * @param array               $array
16
     * @param RpcRequestInterface $request
17
     *
18
     * @Method("annotation", inherit=false, context={"annotation-non-inherit"}, defaultContext=false)
19
     *
20
     * @return Response
21
     */
22 3
    public function testAction($noDefault, $default = 'test', array $array, RpcRequestInterface $request)
23
    {
24 3
        return new Response('success');
25
    }
26
}
27