| 1 |
<?php |
| 2 |
|
| 3 |
namespace Shellbox\Command; |
| 4 |
|
| 5 |
/** |
| 6 |
* A BoxedResult subclass used by ServerBoxedExecutor, providing simplified |
| 7 |
* output file handling. |
| 8 |
* |
| 9 |
* @internal |
| 10 |
*/ |
| 11 |
class ServerBoxedResult extends BoxedResult { |
| 12 |
/** @var string[] */ |
| 13 |
private $fileNames = []; |
| 14 |
/** @var string[] */ |
| 15 |
private $sentFileNames = []; |
| 16 |
|
| 17 |
public function getFileNames() { |
| 18 |
return $this->fileNames; |
| 19 |
} |
| 20 |
|
| 21 |
public function getReceivedFileNames() { |
| 22 |
// Our sent files are your received files. Or to put it another way, |
| 23 |
// the client defines the terminology in the public interface. |
| 24 |
return $this->sentFileNames; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* @param string[] $fileNames |
| 29 |
* @param string[] $sentFileNames |
| 30 |
*/ |
| 31 |
public function setFileNames( $fileNames, $sentFileNames ) { |
| 32 |
$this->fileNames = $fileNames; |
| 33 |
$this->sentFileNames = $sentFileNames; |
| 34 |
} |
| 35 |
} |