Fixed the PHPDoc block for the getter to use @return

This commit is contained in:
Mathew Attlee 2016-05-25 08:57:06 +01:00
parent 5aed7e10cb
commit 9a8082aba6

View File

@ -115,7 +115,7 @@ snippet getter "PHP Class Getter" b
/**
* Getter for $1
*
* ${2:return string}
* @return ${2:string}
*/
public function get${1/\w+\s*/\u$0/}()
{
@ -127,7 +127,7 @@ snippet setter "PHP Class Setter" b
/**
* Setter for $1
*
* @param ${2:string} $$1
* @param ${2:string} $$1
* @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)
@ -143,7 +143,7 @@ snippet gs "PHP Class Getter Setter" b
/**
* Getter for $1
*
* return ${2:string}
* @return ${2:string}
*/
public function get${1/\w+\s*/\u$0/}()
{
@ -316,7 +316,7 @@ if m:
*/
interface $1
{
public function ${3:someFunction}();$4
public function ${3:someFunction}();$4
}
endsnippet