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

TxSelectOk   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A encode() 0 4 1
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
 * Confirm transaction mode.
12
 *
13
 * @codeCoverageIgnore
14
 */
15
class TxSelectOk 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\x0B\xCE";
23
    }
24
}
25