public function getActionType($action) { if (!isset($this->action_type_map[strtolower($action)])) { throw new Exception("Action '{$action}' has no type associated with it"); } return $this->action_type_map[strtolower($action)]; }