| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Query implements Interfaces\IQuery |
||
| 17 | { |
||
| 18 | public string $body = ''; |
||
| 19 | public ?int $maxLength = null; |
||
| 20 | |||
| 21 | 1 | public function setExpectedAnswerSize(?int $maxLength = null): self |
|
| 22 | { |
||
| 23 | 1 | $this->maxLength = !is_null($maxLength) ? $maxLength : $this->maxLength; |
|
| 24 | 1 | return $this; |
|
| 25 | } |
||
| 26 | |||
| 27 | 5 | public function getMaxAnswerLength(): ?int |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @throws RequestException |
||
| 34 | * @return resource |
||
| 35 | */ |
||
| 36 | 4 | public function getData() |
|
| 42 | } |
||
| 43 | } |
||
| 44 |