File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,17 @@ Look at the `php-executable' variable instead of the constant \"php\" command."
352
352
(when matched
353
353
(insert (concat matched php-namespace-suffix-when-insert)))))
354
354
355
+ ;;;### autoload
356
+ (defun php-copyit-fqsen ()
357
+ " Copy/kill class/method FQSEN."
358
+ (interactive )
359
+ (let ((namespace (or (php-get-current-element php--re-namespace-pattern) " " ))
360
+ (class (or (php-get-current-element php--re-classlike-pattern) " " ))
361
+ (namedfunc (php-get-current-element php-beginning-of-defun-regexp)))
362
+ (kill-new (concat (if (string= namespace " " ) " " namespace)
363
+ (if (string= class " " ) " " (concat " \\ " class " ::" ))
364
+ (if (string= namedfunc " " ) " " (concat namedfunc " ()" ))))))
365
+
355
366
;;;### autoload
356
367
(defun php-run-builtin-web-server (router-or-dir hostname port &optional document-root )
357
368
" Run PHP Built-in web server.
You can’t perform that action at this time.
0 commit comments