-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmagic_method.sublime-completions
More file actions
27 lines (26 loc) · 2.77 KB
/
magic_method.sublime-completions
File metadata and controls
27 lines (26 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
// scope:
//
// source.php constant.other
// blacklist:
// constant.other.class
// source.php support.function.magic
"scope": "source.php constant.other - constant.other.class, source.php support.function.magic",
"completions": [
{"trigger":"__call","contents":"__call(${1:string:name}, ${2:array:arguments})","kind":["function","m","Method"],"annotation":"Magic method","details":"__call(string $name, array $arguments): void"},
{"trigger":"__callStatic","contents":"__callStatic(${1:string:name}, ${2:array:arguments})","kind":["function","m","Method"],"annotation":"Magic method","details":"__callStatic(string $name, array $arguments): void"},
{"trigger":"__clone","contents":"__clone()","kind":["function","m","Method"],"annotation":"Magic method","details":"__clone()"},
{"trigger":"__construct","contents":"__construct(${1:mixed:values...})","kind":["function","m","Method"],"annotation":"Magic method","details":"__construct(mixed ...$values)"},
{"trigger":"__debugInfo","contents":"__debugInfo()","kind":["function","m","Method"],"annotation":"Magic method","details":"__debugInfo()"},
{"trigger":"__destruct","contents":"__destruct()","kind":["function","m","Method"],"annotation":"Magic method","details":"__destruct()"},
{"trigger":"__get","contents":"__get(${1:string:name})","kind":["function","m","Method"],"annotation":"Magic method","details":"__get(string $name): void"},
{"trigger":"__invoke","contents":"__invoke(${1:mixed:values...})","kind":["function","m","Method"],"annotation":"Magic method","details":"__invoke(mixed ...$values): mixed"},
{"trigger":"__isset","contents":"__isset(${1:string:name})","kind":["function","m","Method"],"annotation":"Magic method","details":"__isset(string $name)"},
{"trigger":"__set","contents":"__set(${1:string:name}, ${2:mixed:value})","kind":["function","m","Method"],"annotation":"Magic method","details":"__set(string $name, mixed $value): void"},
{"trigger":"__set_state","contents":"__set_state(${1:array:properties})","kind":["function","m","Method"],"annotation":"Magic method","details":"__set_state(array $properties)"},
{"trigger":"__sleep","contents":"__sleep()","kind":["function","m","Method"],"annotation":"Magic method","details":"__sleep()"},
{"trigger":"__toString","contents":"__toString()","kind":["function","m","Method"],"annotation":"Magic method","details":"__toString(): string"},
{"trigger":"__unset","contents":"__unset(${1:string:name})","kind":["function","m","Method"],"annotation":"Magic method","details":"__unset(string $name): void"},
{"trigger":"__wakeup","contents":"__wakeup()","kind":["function","m","Method"],"annotation":"Magic method","details":"__wakeup(): void"}
]
}