| Conditions | 4 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 115 | public function encode() |
||
| 116 | { |
||
| 117 | $data = "\x00\x32\x00\x28". |
||
| 118 | Value\ShortValue::encode($this->reserved1). |
||
| 119 | Value\ShortStringValue::encode($this->queue). |
||
| 120 | Value\OctetValue::encode(($this->ifUnused ? 1 : 0) | (($this->ifEmpty ? 1 : 0) << 1) | (($this->noWait ? 1 : 0) << 2)); |
||
| 121 | |||
| 122 | return "\x01".pack('nN', $this->channel, strlen($data)).$data."\xCE"; |
||
| 123 | } |
||
| 124 | } |
||
| 125 |