@@ -9,7 +9,7 @@ class {class} extends {extends}
9
9
{
10
10
<?php if ($ type === 'controller ' ): ?>
11
11
/**
12
- * Return an array of resource objects, themselves in array format
12
+ * Return an array of resource objects, themselves in array format.
13
13
*
14
14
* @return ResponseInterface
15
15
*/
@@ -19,7 +19,9 @@ public function index()
19
19
}
20
20
21
21
/**
22
- * Return the properties of a resource object
22
+ * Return the properties of a resource object.
23
+ *
24
+ * @param int|string|null $id
23
25
*
24
26
* @return ResponseInterface
25
27
*/
@@ -29,7 +31,7 @@ public function show($id = null)
29
31
}
30
32
31
33
/**
32
- * Return a new resource object, with default properties
34
+ * Return a new resource object, with default properties.
33
35
*
34
36
* @return ResponseInterface
35
37
*/
@@ -39,7 +41,7 @@ public function new()
39
41
}
40
42
41
43
/**
42
- * Create a new resource object, from "posted" parameters
44
+ * Create a new resource object, from "posted" parameters.
43
45
*
44
46
* @return ResponseInterface
45
47
*/
@@ -49,7 +51,9 @@ public function create()
49
51
}
50
52
51
53
/**
52
- * Return the editable properties of a resource object
54
+ * Return the editable properties of a resource object.
55
+ *
56
+ * @param int|string|null $id
53
57
*
54
58
* @return ResponseInterface
55
59
*/
@@ -59,7 +63,9 @@ public function edit($id = null)
59
63
}
60
64
61
65
/**
62
- * Add or update a model resource, from "posted" properties
66
+ * Add or update a model resource, from "posted" properties.
67
+ *
68
+ * @param int|string|null $id
63
69
*
64
70
* @return ResponseInterface
65
71
*/
@@ -69,7 +75,9 @@ public function update($id = null)
69
75
}
70
76
71
77
/**
72
- * Delete the designated resource object from the model
78
+ * Delete the designated resource object from the model.
79
+ *
80
+ * @param int|string|null $id
73
81
*
74
82
* @return ResponseInterface
75
83
*/
@@ -79,7 +87,7 @@ public function delete($id = null)
79
87
}
80
88
<?php elseif ($ type === 'presenter ' ): ?>
81
89
/**
82
- * Present a view of resource objects
90
+ * Present a view of resource objects.
83
91
*
84
92
* @return ResponseInterface
85
93
*/
@@ -89,9 +97,9 @@ public function index()
89
97
}
90
98
91
99
/**
92
- * Present a view to present a specific resource object
100
+ * Present a view to present a specific resource object.
93
101
*
94
- * @param string $id
102
+ * @param int| string|null $id
95
103
*
96
104
* @return ResponseInterface
97
105
*/
@@ -101,9 +109,9 @@ public function show($id = null)
101
109
}
102
110
103
111
/**
104
- * Present a view to present a new single resource object
112
+ * Present a view to present a new single resource object.
105
113
*
106
- * @return mixed
114
+ * @return ResponseInterface
107
115
*/
108
116
public function new()
109
117
{
@@ -114,19 +122,19 @@ public function new()
114
122
* Process the creation/insertion of a new resource object.
115
123
* This should be a POST.
116
124
*
117
- * @return mixed
125
+ * @return ResponseInterface
118
126
*/
119
127
public function create()
120
128
{
121
129
//
122
130
}
123
131
124
132
/**
125
- * Present a view to edit the properties of a specific resource object
133
+ * Present a view to edit the properties of a specific resource object.
126
134
*
127
- * @param mixed $id
135
+ * @param int|string|null $id
128
136
*
129
- * @return mixed
137
+ * @return ResponseInterface
130
138
*/
131
139
public function edit($id = null)
132
140
{
@@ -137,33 +145,33 @@ public function edit($id = null)
137
145
* Process the updating, full or partial, of a specific resource object.
138
146
* This should be a POST.
139
147
*
140
- * @param mixed $id
148
+ * @param int|string|null $id
141
149
*
142
- * @return mixed
150
+ * @return ResponseInterface
143
151
*/
144
152
public function update($id = null)
145
153
{
146
154
//
147
155
}
148
156
149
157
/**
150
- * Present a view to confirm the deletion of a specific resource object
158
+ * Present a view to confirm the deletion of a specific resource object.
151
159
*
152
- * @param mixed $id
160
+ * @param int|string|null $id
153
161
*
154
- * @return mixed
162
+ * @return ResponseInterface
155
163
*/
156
164
public function remove($id = null)
157
165
{
158
166
//
159
167
}
160
168
161
169
/**
162
- * Process the deletion of a specific resource object
170
+ * Process the deletion of a specific resource object.
163
171
*
164
- * @param mixed $id
172
+ * @param int|string|null $id
165
173
*
166
- * @return mixed
174
+ * @return ResponseInterface
167
175
*/
168
176
public function delete($id = null)
169
177
{
0 commit comments