src/Model/ContactsList.php
private function validateAction($action)
    {
        $actionAvailable = [self::ACTION_ADDFORCE, self::ACTION_ADDNOFORCE, self::ACTION_REMOVE, self::ACTION_UNSUB];
        if (in_array($action, $actionAvailable)) {
            return true;
        }
        return false;
    }
private function validateAction($action)
    {
        $actionAvailable = [self::ACTION_ADDFORCE, self::ACTION_ADDNOFORCE, self::ACTION_REMOVE, self::ACTION_UNSUB];
        if (in_array($action, $actionAvailable)) {
            return true;
        }
        return false;
    }
private function validateAction ( $ action ) { $ actionAvailable = [ self :: ACTION_ADDFORCE , self :: ACTION_ADDNOFORCE , self :: ACTION_REMOVE , self :: ACTION_UNSUB ] ; if ( in_array ( $ action , $ actionAvailable ) ) { return true ; } return false ; }
Validate if action is authorized
@param string $action
@return bool
Validate if action is authorized