public static function method($method) { if (visitor::method() !== strtoupper($method)) { $except = new visitor_except('method not allowed', 405); $except->set_value('allow_list', $method); throw $except; } }