public function put($pattern, $action) { self::$rules[self::REQUEST_METHOD_PUT . self::patternFactory($pattern)] = $action; return $this; }