Merge pull request #457 from BlackIkeEagle/php-extra-class-definitions

Php: extra class definitions
This commit is contained in:
Holger Rapp 2014-09-29 20:22:10 +02:00
commit 384659ff01

View File

@ -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})
{