From b0807c67e416fbd37f70ee2565f4462305d181fa Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 4 Oct 2022 08:44:32 +0200 Subject: feat: small changes and improvementes --- lua/alpha/snips/ft/php.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lua/alpha') 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 -- cgit v1.2.3