Total Complexity | 8 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class GetFile extends AQuery |
||
15 | { |
||
16 | protected string $filePath = ''; |
||
17 | protected int $offset = 0; |
||
18 | protected int $limit = 0; |
||
19 | |||
20 | 1 | protected function getCommand(): int |
|
21 | { |
||
22 | 1 | return Fsp::CC_GET_FILE; |
|
23 | } |
||
24 | |||
25 | 2 | public function setFilePath(string $filePath): self |
|
26 | { |
||
27 | 2 | $this->filePath = $filePath; |
|
28 | 2 | return $this; |
|
29 | } |
||
30 | |||
31 | 2 | public function setOffset(int $offset): self |
|
35 | } |
||
36 | |||
37 | 1 | public function setLimit(int $limit): self |
|
41 | } |
||
42 | |||
43 | 2 | protected function getFilePosition(): int |
|
44 | { |
||
45 | 2 | return $this->offset; |
|
46 | } |
||
47 | |||
48 | 2 | protected function getData(): string |
|
49 | { |
||
50 | 2 | return $this->filePath . chr(0); |
|
51 | } |
||
52 | |||
53 | 2 | protected function getExtraData(): string |
|
56 | } |
||
57 | } |
||
58 |