Completed
Push — master ( 920293...d1c678 )
by Rémi
11:50
created

EchoConsumer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Burrow\Examples;
4
5
use Burrow\QueueConsumer;
6
7
class EchoConsumer implements QueueConsumer
8
{
9
    /**
10
     * @param mixed    $message
11
     * @param string[] $headers
12
     *
13
     * @return void
14
     *
15
     * @throws \Exception
16
     */
17
    public function consume($message, array $headers = [])
18
    {
19
        print_r($headers);
20
        echo $message . "\n";
21
    }
22
}
23