Completed
Push — master ( 055f1b...f72a4b )
by Pavel
52s
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 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 4
crap 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