Completed
Push — master ( 4703e1...97bad7 )
by
unknown
11:22
created

DummyChannel::__call()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
c 1
b 0
f 0
cc 2
eloc 4
nc 2
nop 2
crap 6
1
<?php
2
/**
3
 * dummy job producer
4
 */
5
6
namespace Graviton\RabbitMqBundle\Producer;
7
8
/**
9
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
10
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
11
 * @link     http://swisscom.ch
12
 */
13
class DummyChannel
14
{
15
    /**
16
     * Faking the not conventional call queue_declare
17
     *
18
     * @param string $method    Simple implementation to match our camelcase validation
19
     * @param array  $arguments Data list
20
     * @return mixed
21
     */
22
    public function __call($method, $arguments)
23
    {
24
        $method = 'queueDeclare';
25
        if (isset($this->$method)) {
26
            call_user_func_array($this->$method, array_merge([&$this], $arguments));
27
        }
28
    }
29
30
    /**
31
     * Dummy function queue_declare
32
     * @param string $queue tmp value
33
     * @param bool   $fooA  tmp value
34
     * @param bool   $fooB  tmp value
35
     * @param bool   $fooC  tmp value
36
     * @param bool   $fooD  tmp value
37
     * @return void
38
     */
39
    public function queueDeclare($queue, $fooA, $fooB, $fooC, $fooD)
0 ignored issues
show
Unused Code introduced by
The parameter $queue is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fooA is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fooB is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fooC is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fooD is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
40
    {
41
    }
42
}
43