oni-php: Add more snippets
This commit is contained in:
parent
bc8c360593
commit
65b8e7381d
2 changed files with 13 additions and 0 deletions
5
oni-php/snippets/php-mode/arrow-function
Normal file
5
oni-php/snippets/php-mode/arrow-function
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: arrow-function
|
||||
# key: fn
|
||||
# --
|
||||
fn($1) => $0
|
8
oni-php/snippets/php-mode/constructor
Normal file
8
oni-php/snippets/php-mode/constructor
Normal file
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: constructor
|
||||
# key: constructor
|
||||
# --
|
||||
public function __construct($1)
|
||||
{
|
||||
$0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue