public function __invoke($name = null, $cb = null) { if (func_num_args() === 0) { $this->execute(); return; } $this->addJob($name, $cb); }