Merge pull request #60 from Stubbs/master

Added getset snippet for PHP
This commit is contained in:
Honza Pokorny 2011-12-22 07:53:05 -08:00
commit b6061aab16

View File

@ -46,8 +46,9 @@ snippet doc_cp
* ${1:undocumented class} * ${1:undocumented class}
* *
* @package ${2:default} * @package ${2:default}
* @author ${3:`g:snips_author`} * @subpackage ${3:default}
*/${4} * @author ${4:`g:snips_author`}
*/${5}
# Class Variable - post doc # Class Variable - post doc
snippet doc_vp snippet doc_vp
/** /**
@ -242,8 +243,28 @@ snippet vd
var_dump(${1}); var_dump(${1});
snippet vdd snippet vdd
var_dump(${1}); die(${2:}); var_dump(${1}); die(${2:});
snippet http_redirect snippet http_redirect
header ("HTTP/1.1 301 Moved Permanently"); header ("HTTP/1.1 301 Moved Permanently");
header ("Location: ".URL); header ("Location: ".URL);
exit(); exit();
# Getters & Setters
snippet getset
/**
* Gets the value of ${1:}
*
* @return ${2}
*/
function get$1()
{
return $this->$_$1
}
/**
* Sets the value of $1
*
* @param mixed $$1 ${3}
*/
function set$1($$1)
{
$this->_$1 = $$1
}