diff --git a/snippets/php.snippets b/snippets/php.snippets new file mode 100644 index 0000000..aabb0dd --- /dev/null +++ b/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'); + }