Completed
Push — master ( fdb7de...e17409 )
by Sergey
03:32
created

ChannelCloseOk   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 10
rs 10
1
<?php
2
/*
3
 * This file is automatically generated.
4
 */
5
6
namespace ButterAMQP\Framing\Method;
7
8
use ButterAMQP\Framing\Frame;
9
10
/**
11
 * Confirm a channel close.
12
 *
13
 * @codeCoverageIgnore
14
 */
15
class ChannelCloseOk extends Frame
16
{
17
    /**
18
     * @return string
19
     */
20
    public function encode()
21
    {
22
        return "\x01".pack('n', $this->channel)."\x00\x00\x00\x04\x00\x14\x00\x29\xCE";
23
    }
24
}
25