Clinner\Command\Callback::getCallback PHP Method

getCallback() public method

Get the callback function for this command.
public getCallback ( ) : Closure
return Closure
    public function getCallback()
    {
        return $this->_callback;
    }

Usage Example

Example #1
0
 public function testGetCallback()
 {
     $closure = function ($a) {
     };
     $callback = new Callback($closure);
     $this->assertSame($closure, $callback->getCallback());
 }