protected function matchAction($action, $actions): bool
    {
        return in_array($action, $actions) || $this->matchWild($actions, $action);
    }
protected function matchAction($action, $actions): bool
    {
        return in_array($action, $actions) || $this->matchWild($actions, $action);
    }
protected function matchAction ( $ action , $ actions ) : bool { return in_array ( $ action , $ actions ) || $ this -> matchWild ( $ actions , $ action ) ; }
Determine if an action is valid for a given list of actions

@param $action
@param $actions
@return bool
Determine if an action is valid for a given list of actions