From 65b8e7381d2e2ea5f645e081784f771f29ab723f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 7 Apr 2025 14:21:14 -0700 Subject: oni-php: Add more snippets --- oni-php/snippets/php-mode/arrow-function | 5 +++++ oni-php/snippets/php-mode/constructor | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 oni-php/snippets/php-mode/arrow-function create mode 100644 oni-php/snippets/php-mode/constructor (limited to 'oni-php/snippets/php-mode') diff --git a/oni-php/snippets/php-mode/arrow-function b/oni-php/snippets/php-mode/arrow-function new file mode 100644 index 0000000..43bad1e --- /dev/null +++ b/oni-php/snippets/php-mode/arrow-function @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: arrow-function +# key: fn +# -- +fn($1) => $0 \ No newline at end of file diff --git a/oni-php/snippets/php-mode/constructor b/oni-php/snippets/php-mode/constructor new file mode 100644 index 0000000..f919e6c --- /dev/null +++ b/oni-php/snippets/php-mode/constructor @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: constructor +# key: constructor +# -- +public function __construct($1) +{ + $0 +} \ No newline at end of file -- cgit v1.3-2-g0d8e