Completed
Push — master ( 04e536...b701b2 )
by
unknown
18s queued 10s
created

AMQPBasicCancelException::getConsumerTag()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
namespace PhpAmqpLib\Exception;
3
4
class AMQPBasicCancelException extends \Exception implements AMQPExceptionInterface
5
{
6
    /**
7
     * @var string
8
     * @internal Use getter getConsumerTag()
9
     */
10
    public $consumerTag;
11
12
    /**
13
     * @param string $consumerTag
14
     */
15
    public function __construct($consumerTag)
16
    {
17
        parent::__construct('Channel was canceled');
18
        $this->consumerTag = $consumerTag;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getConsumerTag()
25
    {
26
        return $this->consumerTag;
27
    }
28
}
29