Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 6 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
13 | 58 | public function makeQueryDTO(): QueryDTO |
|
14 | { |
||
15 | 58 | $threadId = $this->binaryDataReader->readUInt32(); |
|
16 | 58 | $executionTime = $this->binaryDataReader->readUInt32(); |
|
17 | 58 | $schemaLength = $this->binaryDataReader->readUInt8(); |
|
18 | 58 | $this->binaryDataReader->advance(2); |
|
19 | 58 | $statusVarsLength = $this->binaryDataReader->readUInt16(); |
|
20 | 58 | $this->binaryDataReader->advance($statusVarsLength); |
|
21 | 58 | $schema = $this->binaryDataReader->read($schemaLength); |
|
22 | 58 | $this->binaryDataReader->advance(1); |
|
23 | 58 | $query = $this->binaryDataReader->read($this->eventInfo->getSizeNoHeader() - 13 - $statusVarsLength - $schemaLength - 1); |
|
24 | |||
25 | 58 | return new QueryDTO( |
|
26 | 58 | $this->eventInfo, |
|
27 | $schema, |
||
28 | $executionTime, |
||
29 | $query, |
||
30 | $threadId |
||
31 | ); |
||
33 | } |