diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/snips/ft/php.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/alpha/snips/ft/php.lua b/lua/alpha/snips/ft/php.lua index 5ca63f6..decee10 100644 --- a/lua/alpha/snips/ft/php.lua +++ b/lua/alpha/snips/ft/php.lua @@ -102,6 +102,12 @@ M.pro = fmt([[{} {} ${},]], { end, { 2 }), }) +M.rpro = fmt([[{} readonly {} ${},]], { + visibility(1, "public"), + i(2, "int"), + i(3, ""), +}) + M._c = fmt( [[{} function __construct({}) {{ {} @@ -150,4 +156,14 @@ M["then"] = fmt([[->then(function ({}) {{ {} }})]], {i(1, ""), i(2, "")}) +M.test = fmt([[/** + * @test + */ +public function it_{}(): void +{{ + {} +}} +]], {i(1, ""), i(0, "")}) + + return M |