public function __construct(\Closure $callable, $arguments = []) { parent::__construct('execute callable function', []); $this->callable = $callable; }
public function __construct(\Closure $callable, $arguments = array()) { // TODO: add serialization to function http://www.htmlist.com/development/extending-php-5-3-closures-with-serialization-and-reflection/ parent::__construct('execute callable function', array()); $this->callable = $callable; }