diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-10-04 08:44:32 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-10-04 08:44:32 +0200 |
| commit | b0807c67e416fbd37f70ee2565f4462305d181fa (patch) | |
| tree | 5f972cc1b2d56bfb39a44df212827ab827cb7006 /lua/alpha/snips/ft/php.lua | |
| parent | bc7ded2a1cebcd4bbf5e549b107c7e11a5f32535 (diff) | |
| download | nvim-conf-b0807c67e416fbd37f70ee2565f4462305d181fa.tar.gz nvim-conf-b0807c67e416fbd37f70ee2565f4462305d181fa.zip | |
feat: small changes and improvementes
Diffstat (limited to 'lua/alpha/snips/ft/php.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 |