-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew-class.sublime-snippet
56 lines (51 loc) · 1.14 KB
/
new-class.sublime-snippet
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<snippet>
<content><![CDATA[
/**
* ${100:Thing}
*
* @since ${1000:NEXT}
* @package ${2000:WebDevStudios\Package}
*/
/**
* ${100:Thing}
*
* @since ${1000:NEXT}
*/
class ${100:Thing} {
/**
* Construct.
*
* @author ${900:Aubrey Portwood <aubrey@webdevstudios.com>}
* @since ${1000:NEXT}
*/
public function __construct() {
}
/**
* Get a ${200:thing}.
*
* @author ${900:Aubrey Portwood <aubrey@webdevstudios.com>}
* @since ${1000:NEXT}
*
* @return ${500:string} ${200:thing} ${400:[<description>]}
*/
public function get_${200:thing}() : ${500:string} {
return \$this->${200:thing};
}
/**
* Set a ${200:thing}.
*
* @since ${1000:NEXT}
* @author ${900:Aubrey Portwood <aubrey@webdevstudios.com>}
*
* @param ${500:string} \$${200:thing} ${400:[<description>]}
*/
public function set_${200:thing}( ${500:string} \$${200:thing} ) {
\$this->${200:thing} = \$${200:thing};
}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>new-class</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>