| 1 | <?php |
||
| 19 | class Closure extends Command { |
||
| 20 | /** |
||
| 21 | * |
||
| 22 | * @var \Closure |
||
| 23 | */ |
||
| 24 | private $closure; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * an array of arguments to pass as parameters to the closure |
||
| 28 | * |
||
| 29 | * @var mixed[] |
||
| 30 | */ |
||
| 31 | private $arguments; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | * @param Closure $closure |
||
| 36 | * @param array $arguments |
||
| 37 | * an optional array of arguments to pass to the closure |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(\Closure $closure, $arguments = array()) |
|
| 44 | |||
| 45 | 2 | protected function _execute() |
|
| 49 | } |