Skip to content

Commit

Permalink
Added snippets for snipMate
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Apr 26, 2014
1 parent f14cfbd commit 257c971
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions snippets/php.snippets
@@ -0,0 +1,30 @@
snippet acc
/**
* Returns ${1:description}.
*
* @return ${2:type}
*/
public function get${3:method}()
{
return $this->${4:property};
}

/**
* Sets $1.
*
* @param $2 $$4
*/
public function set$3($$4)
{
$this->$4 = $$4;
}
snippet mock
/**
* Returns a mock ${1:description}.
*
* @return ${2:type}
*/
protected function getMock${3:method}()
{
return Phake::mock('$2');
}

0 comments on commit 257c971

Please sign in to comment.