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

EchoConsumer::consume()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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