Merge pull request #457 from BlackIkeEagle/php-extra-class-definitions
Php: extra class definitions
This commit is contained in:
commit
384659ff01
@ -223,10 +223,25 @@ endsnippet
|
|||||||
|
|
||||||
snippet class "Class declaration template" b
|
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`}
|
* @author ${2:`!v g:snips_author`}
|
||||||
*/
|
*/
|
||||||
class $1
|
interface $1
|
||||||
{
|
{
|
||||||
public function ${3:__construct}(${4:$options})
|
public function ${3:__construct}(${4:$options})
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user