Consumer::consume()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php declare(strict_types=1);
2
3
namespace Mgid\KafkaBundle\Consumer;
4
5
final class Consumer extends \RdKafka\KafkaConsumer
6
{
7
    public const DEFAULT_TIMEOUT = 10000;
8
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function __construct(Configuration $configuration)
13
    {
14
        parent::__construct($configuration);
15
    }
16
17
    /**
18
     * @param int $timeout
19
     *
20
     * @return \RdKafka\Message
21
     *
22
     * @throws \RdKafka\Exception
23
     */
24
    public function consume($timeout = self::DEFAULT_TIMEOUT): \RdKafka\Message
25
    {
26
        return parent::consume($timeout);
27
    }
28
}
29