Get the callback function for this command.
public getCallback ( ) : Closure | ||
return | Closure |
public function testGetCallback() { $closure = function ($a) { }; $callback = new Callback($closure); $this->assertSame($closure, $callback->getCallback()); }