Merge pull request #740 from codeinabox/phpdoc-getter
Fixed the PHPDoc block for the getter to use @return
This commit is contained in:
commit
3b7c903c35
@ -115,7 +115,7 @@ snippet getter "PHP Class Getter" b
|
|||||||
/**
|
/**
|
||||||
* Getter for $1
|
* Getter for $1
|
||||||
*
|
*
|
||||||
* ${2:return string}
|
* @return ${2:string}
|
||||||
*/
|
*/
|
||||||
public function get${1/\w+\s*/\u$0/}()
|
public function get${1/\w+\s*/\u$0/}()
|
||||||
{
|
{
|
||||||
@ -127,7 +127,7 @@ snippet setter "PHP Class Setter" b
|
|||||||
/**
|
/**
|
||||||
* Setter for $1
|
* Setter for $1
|
||||||
*
|
*
|
||||||
* @param ${2:string} $$1
|
* @param ${2:string} $$1
|
||||||
* @return ${3:`!p snip.rv=snip.basename`}
|
* @return ${3:`!p snip.rv=snip.basename`}
|
||||||
*/
|
*/
|
||||||
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)
|
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)
|
||||||
@ -143,7 +143,7 @@ snippet gs "PHP Class Getter Setter" b
|
|||||||
/**
|
/**
|
||||||
* Getter for $1
|
* Getter for $1
|
||||||
*
|
*
|
||||||
* return ${2:string}
|
* @return ${2:string}
|
||||||
*/
|
*/
|
||||||
public function get${1/\w+\s*/\u$0/}()
|
public function get${1/\w+\s*/\u$0/}()
|
||||||
{
|
{
|
||||||
@ -316,7 +316,7 @@ if m:
|
|||||||
*/
|
*/
|
||||||
interface $1
|
interface $1
|
||||||
{
|
{
|
||||||
public function ${3:someFunction}();$4
|
public function ${3:someFunction}();$4
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user