getCallback() public method

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