Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 4 |
UnboxedCommand | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 4 |
__construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
execute | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
namespace Shellbox\Command; | |
/** | |
* A command without file handling. | |
* | |
* This is almost the same as Command, except with a type-hinted executor. | |
*/ | |
class UnboxedCommand extends Command { | |
/** @var UnboxedExecutor */ | |
protected $executor; | |
/** | |
* External callers should typically use UnboxedExecutor::createCommand() | |
* | |
* @param UnboxedExecutor $executor | |
*/ | |
public function __construct( UnboxedExecutor $executor ) { | |
$this->executor = $executor; | |
} | |
/** | |
* Execute the command with the current executor | |
* | |
* @return UnboxedResult | |
*/ | |
public function execute() { | |
return $this->executor->execute( $this ); | |
} | |
} |