errorMethods = implode(',', $errorMethods); return false; } } } } return true; } /** * Get the validation error message. * * @return string */ public function message() { return "HTTP 方法 [ {$this->errorMethods} ] 无效"; } }