1111
1212namespace CodeIgniter \RESTful ;
1313
14+ use CodeIgniter \HTTP \Response ;
15+
1416/**
1517 * An extendable controller to help provide a UI for a resource.
1618 */
@@ -19,7 +21,7 @@ class ResourcePresenter extends BaseResource
1921 /**
2022 * Present a view of resource objects
2123 *
22- * @return mixed
24+ * @return Response|string|void
2325 */
2426 public function index ()
2527 {
@@ -29,9 +31,9 @@ public function index()
2931 /**
3032 * Present a view to present a specific resource object
3133 *
32- * @param mixed $id
34+ * @param int|string|null $id
3335 *
34- * @return mixed
36+ * @return Response|string|void
3537 */
3638 public function show ($ id = null )
3739 {
@@ -41,7 +43,7 @@ public function show($id = null)
4143 /**
4244 * Present a view to present a new single resource object
4345 *
44- * @return mixed
46+ * @return Response|string|void
4547 */
4648 public function new ()
4749 {
@@ -52,7 +54,7 @@ public function new()
5254 * Process the creation/insertion of a new resource object.
5355 * This should be a POST.
5456 *
55- * @return mixed
57+ * @return Response|string|void
5658 */
5759 public function create ()
5860 {
@@ -62,9 +64,9 @@ public function create()
6264 /**
6365 * Present a view to edit the properties of a specific resource object
6466 *
65- * @param mixed $id
67+ * @param int|string|null $id
6668 *
67- * @return mixed
69+ * @return Response|string|void
6870 */
6971 public function edit ($ id = null )
7072 {
@@ -75,9 +77,9 @@ public function edit($id = null)
7577 * Process the updating, full or partial, of a specific resource object.
7678 * This should be a POST.
7779 *
78- * @param mixed $id
80+ * @param int|string|null $id
7981 *
80- * @return mixed
82+ * @return Response|string|void
8183 */
8284 public function update ($ id = null )
8385 {
@@ -87,9 +89,9 @@ public function update($id = null)
8789 /**
8890 * Present a view to confirm the deletion of a specific resource object
8991 *
90- * @param mixed $id
92+ * @param int|string|null $id
9193 *
92- * @return mixed
94+ * @return Response|string|void
9395 */
9496 public function remove ($ id = null )
9597 {
@@ -99,9 +101,9 @@ public function remove($id = null)
99101 /**
100102 * Process the deletion of a specific resource object
101103 *
102- * @param mixed $id
104+ * @param int|string|null $id
103105 *
104- * @return mixed
106+ * @return Response|string|void
105107 */
106108 public function delete ($ id = null )
107109 {
0 commit comments