for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\RemoteRequest\Protocols\Fsp\Query;
use kalanis\RemoteRequest\Protocols\Fsp;
/**
* Class GetDir
* @package kalanis\RemoteRequest\Protocols\Fsp\Query
* Want directory listing
*/
class GetDir extends AQuery
{
protected string $dirPath = '';
protected int $position = 0;
protected function getCommand(): int
return Fsp::CC_GET_DIR;
}
public function setDirPath(string $dirPath): self
$this->dirPath = $dirPath;
return $this;
public function setPosition(int $position): self
$this->position = $position;
protected function getFilePosition(): int
return $this->position;
protected function getData(): string
return $this->dirPath . chr(0);