public function action(string $name) : ActionDefiner
    {
        return new ActionDefiner($this->authSystem, $this->requiredPermissions, $name, function (IAction $action) {
            $this->actions[$action->getName()] = $action;
        });
    }
public function action(string $name) : ActionDefiner
    {
        return new ActionDefiner($this->authSystem, $this->requiredPermissions, $name, function (IAction $action) {
            $this->actions[$action->getName()] = $action;
        });
    }
public function action ( string $ name ) : ActionDefiner { return new ActionDefiner ( $ this -> authSystem , $ this -> requiredPermissions , $ name , function ( IAction $ action ) { $ this -> actions [ $ action -> getName ( ) ] = $ action ; } ) ; }
Defines an action with the supplied name.

@param string $name

@return ActionDefiner
Defines an action with the supplied name .