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

RpcImplController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAction() 0 4 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