3
3
namespace {namespace};
4
4
5
5
use {useStatement};
6
+ use CodeIgniter\HTTP\ResponseInterface;
6
7
7
8
class {class} extends {extends}
8
9
{
9
10
<?php if ($ type === 'controller ' ): ?>
10
11
/**
11
12
* Return an array of resource objects, themselves in array format
12
13
*
13
- * @return mixed
14
+ * @return ResponseInterface
14
15
*/
15
16
public function index()
16
17
{
@@ -20,7 +21,7 @@ public function index()
20
21
/**
21
22
* Return the properties of a resource object
22
23
*
23
- * @return mixed
24
+ * @return ResponseInterface
24
25
*/
25
26
public function show($id = null)
26
27
{
@@ -30,7 +31,7 @@ public function show($id = null)
30
31
/**
31
32
* Return a new resource object, with default properties
32
33
*
33
- * @return mixed
34
+ * @return ResponseInterface
34
35
*/
35
36
public function new()
36
37
{
@@ -40,7 +41,7 @@ public function new()
40
41
/**
41
42
* Create a new resource object, from "posted" parameters
42
43
*
43
- * @return mixed
44
+ * @return ResponseInterface
44
45
*/
45
46
public function create()
46
47
{
@@ -50,7 +51,7 @@ public function create()
50
51
/**
51
52
* Return the editable properties of a resource object
52
53
*
53
- * @return mixed
54
+ * @return ResponseInterface
54
55
*/
55
56
public function edit($id = null)
56
57
{
@@ -60,7 +61,7 @@ public function edit($id = null)
60
61
/**
61
62
* Add or update a model resource, from "posted" properties
62
63
*
63
- * @return mixed
64
+ * @return ResponseInterface
64
65
*/
65
66
public function update($id = null)
66
67
{
@@ -70,7 +71,7 @@ public function update($id = null)
70
71
/**
71
72
* Delete the designated resource object from the model
72
73
*
73
- * @return mixed
74
+ * @return ResponseInterface
74
75
*/
75
76
public function delete($id = null)
76
77
{
@@ -80,7 +81,7 @@ public function delete($id = null)
80
81
/**
81
82
* Present a view of resource objects
82
83
*
83
- * @return mixed
84
+ * @return ResponseInterface
84
85
*/
85
86
public function index()
86
87
{
@@ -90,9 +91,9 @@ public function index()
90
91
/**
91
92
* Present a view to present a specific resource object
92
93
*
93
- * @param mixed $id
94
+ * @param string $id
94
95
*
95
- * @return mixed
96
+ * @return ResponseInterface
96
97
*/
97
98
public function show($id = null)
98
99
{
0 commit comments