diff --git a/UltiSnips/php.snippets b/UltiSnips/php.snippets index bf450ff..8d5555e 100644 --- a/UltiSnips/php.snippets +++ b/UltiSnips/php.snippets @@ -223,10 +223,25 @@ endsnippet snippet class "Class declaration template" b /** - * Class ${1:`!p snip.rv=snip.fn.split('.')[0]`} + * Class ${2:`!p snip.rv=snip.fn.split('.')[0]`} + * @author ${3:`!v g:snips_author`} + */ +$1class $2 +{ + public function ${4:__construct}(${5:$options}) + { + ${6:// code} + } +} +$0 +endsnippet + +snippet interface "interface declaration template" b +/** + * Interface ${1:`!p snip.rv=snip.fn.split('.')[0]`} * @author ${2:`!v g:snips_author`} */ -class $1 +interface $1 { public function ${3:__construct}(${4:$options}) {