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

DummyChannel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __call() 0 7 2
A queueDeclare() 0 3 1
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