Completed
Pull Request — master (#1)
by Sergey
04:51
created

TxSelect::encode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * This file is automatically generated.
4
 */
5
6
namespace ButterAMQP\AMQP091\Framing\Method;
7
8
use ButterAMQP\AMQP091\Framing\Frame;
9
10
/**
11
 * Select standard transaction mode.
12
 *
13
 * @codeCoverageIgnore
14
 */
15
class TxSelect 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\x5A\x00\x0A\xCE";
23
    }
24
}
25