Completed
Push — master ( cbb2b3...70b387 )
by Daniel
03:09
created

RpcServiceMock   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getQueueOptions() 0 4 1
A buildResponse() 0 4 1
1
<?php
2
3
namespace Cmobi\RabbitmqBundle\Tests\Rpc;
4
5
use Cmobi\RabbitmqBundle\Rpc\RpcBaseService;
6
7
class RpcServiceMock extends RpcBaseService
8
{
9
    /**
10
     * @return array
11
     */
12
    public function getQueueOptions()
13
    {
14
        return $this->queueOptions;
15
    }
16
17
    /**
18
     * Build response for rpc server
19
     *
20
     * @return string
21
     */
22
    protected function buildResponse()
23
    {
24
        return 'RpcServiceMock';
25
    }
26
}