Completed
Push — feature/EVO-8270-status-event-... ( 52a5f4 )
by
unknown
64:33
created

DummyChannel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

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
use OldSound\RabbitMqBundle\RabbitMq\Producer;
9
use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface;
10
11
/**
12
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
13
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
14
 * @link     http://swisscom.ch
15
 */
16
class DummyChannel
17
{
18
    /**
19
     * Faking the not conventional call queue_declare
20
     *
21
     * @param string $method    Simple implementation to match our camelcase validation
22
     * @param array  $arguments Data list
23
     * @return mixed
24
     */
25
    public function __call($method, $arguments)
26
    {
27
        $method = 'queueDeclare';
28
        if (isset($this->$method)) {
29
            call_user_func_array($this->$method, array_merge([&$this], $arguments));
30
        }
31
    }
32
33
    /**
34
     * Dummy function queue_declare
35
     * @param string $queue tmp value
36
     * @param bool   $false tmp value
37
     * @param bool   $true  tmp value
38
     * @param bool   $false tmp value
39
     * @param bool   $false tmp value
40
     * @return void
41
     */
42
    public function queueDeclare($queue, $false, $true, $false, $false)
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 $false 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 $true 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...
43
    {
44
    }
45
}
46