PhpSchool\CliMenu\MenuItem\SelectableItem::getSelectAction PHP Method

getSelectAction() public method

Execute the items callable if required
public getSelectAction ( ) : callable | void
return callable | void
    public function getSelectAction()
    {
        return $this->selectAction;
    }

Usage Example

Example #1
0
 public function testGetSelectAction()
 {
     $callable = function () {
     };
     $item = new SelectableItem('Item', $callable);
     $this->assertSame($callable, $item->getSelectAction());
 }