Completed
Push — master ( 055f1b...f72a4b )
by Pavel
52s
created

RpcImplController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAction() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: batanov.pavel
5
 * Date: 16.05.2016
6
 * Time: 11:46
7
 */
8
9
namespace Bankiru\Api\Rpc\Tests\Fixtures\Rpc;
10
11
use Bankiru\Api\Rpc\Impl\Response;
12
use ScayTrase\Api\Rpc\RpcRequestInterface;
13
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
14
use Symfony\Component\HttpFoundation\JsonResponse;
15
16
class RpcImplController extends Controller
17
{
18
    /**
19
     * @param string              $noDefault
20
     * @param string              $default
21
     * @param array               $array
22
     * @param RpcRequestInterface $request
23
     *
24
     * @return JsonResponse
25
     */
26 3
    public function testAction($noDefault, $default = 'test', array $array, RpcRequestInterface $request)
27
    {
28 3
        return new Response('success');
29
    }
30
}
31