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

DummyChannel::queueDeclare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
eloc 1
nc 1
nop 3
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