1
0
mirror of https://github.com/amix/vimrc synced 2025-08-02 02:44:59 +08:00

Updated plugins

This commit is contained in:
amix
2015-02-04 10:43:54 +00:00
parent e7a01094b6
commit a4b4587019
71 changed files with 2076 additions and 1112 deletions

View File

@ -102,44 +102,54 @@ var_export(${1});${2}
endsnippet
snippet getter "PHP Class Getter" b
/*
/**
* Getter for $1
*
* ${2:return string}
*/
public function get${1/\w+\s*/\u$0/}()
{
return $this->$1;$2
return $this->$1;$3
}
$4
$0
endsnippet
snippet setter "PHP Class Setter" b
/*
/**
* Setter for $1
*
* @param ${2:string} $$1
* @return ${3:`!p snip.rv=snip.basename`}
*/
public function set${1/\w+\s*/\u$0/}($$1)
public function set${1/\w+\s*/\u$0/}(${4:${2/(void|string|int|integer|double|float|object|boolear|null|mixed|number|resource)|(.*)/(?1::$2 )/}}$$1)
{
$this->$1 = $$1;$3
${4:return $this;}
$this->$1 = $$1;$5
${6:return $this;}
}
$0
endsnippet
snippet gs "PHP Class Getter Setter" b
/*
/**
* Getter for $1
*
* return ${2:string}
*/
public function get${1/\w+\s*/\u$0/}()
{
return $this->$1;$2
return $this->$1;$3
}
/*
/**
* Setter for $1
*
* @param $2 $$1
* @return ${4:`!p snip.rv=snip.basename`}
*/
public function set${1/\w+\s*/\u$0/}($$1)
public function set${1/\w+\s*/\u$0/}(${5:${2/(void|string|int|integer|double|float|object|boolear|null|mixed|number|resource)|(.*)/(?1::$2 )/}}$$1)
{
$this->$1 = $$1;$3
${4:return $this;}
$this->$1 = $$1;$6
${7:return $this;}
}
$0
endsnippet