| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 20 | 54 | public function makeQueryDTO() |
|
| 21 | { |
||
| 22 | 54 | $this->binaryDataReader->advance(4); |
|
| 23 | 54 | $executionTime = $this->binaryDataReader->readUInt32(); |
|
| 24 | 54 | $schemaLength = $this->binaryDataReader->readUInt8(); |
|
| 25 | 54 | $this->binaryDataReader->advance(2); |
|
| 26 | 54 | $statusVarsLength = $this->binaryDataReader->readUInt16(); |
|
| 27 | 54 | $this->binaryDataReader->advance($statusVarsLength); |
|
| 28 | 54 | $schema = $this->binaryDataReader->read($schemaLength); |
|
| 29 | 54 | $this->binaryDataReader->advance(1); |
|
| 30 | 54 | $query = $this->binaryDataReader->read($this->eventInfo->getSizeNoHeader() - 13 - $statusVarsLength - $schemaLength - 1); |
|
| 31 | |||
| 32 | 54 | return new QueryDTO( |
|
| 33 | 54 | $this->eventInfo, |
|
| 34 | 54 | $schema, |
|
| 35 | 54 | $executionTime, |
|
| 36 | $query |
||
| 37 | 54 | ); |
|
| 38 | } |
||
| 39 | } |