docs: add int to @param $id

There is no way to pass int value to the controller method now,
unless extending Router. But $id may be essentially int, and
we should support int.
This commit is contained in:
kenjis 2022-08-04 17:27:53 +09:00
parent a0ababfa56
commit d6cd7b1b43
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 9 additions and 9 deletions

View File

@ -34,7 +34,7 @@ class ResourceController extends BaseResource
/**
* Return the properties of a resource object
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/
@ -66,7 +66,7 @@ class ResourceController extends BaseResource
/**
* Return the editable properties of a resource object
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/
@ -78,7 +78,7 @@ class ResourceController extends BaseResource
/**
* Add or update a model resource, from "posted" properties
*
* @param string|null $id
* @param string|null|int$id
*
* @return Response|string|void
*/
@ -90,7 +90,7 @@ class ResourceController extends BaseResource
/**
* Delete the designated resource object from the model
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/

View File

@ -31,7 +31,7 @@ class ResourcePresenter extends BaseResource
/**
* Present a view to present a specific resource object
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/
@ -64,7 +64,7 @@ class ResourcePresenter extends BaseResource
/**
* Present a view to edit the properties of a specific resource object
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/
@ -77,7 +77,7 @@ class ResourcePresenter extends BaseResource
* Process the updating, full or partial, of a specific resource object.
* This should be a POST.
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/
@ -89,7 +89,7 @@ class ResourcePresenter extends BaseResource
/**
* Present a view to confirm the deletion of a specific resource object
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/
@ -101,7 +101,7 @@ class ResourcePresenter extends BaseResource
/**
* Process the deletion of a specific resource object
*
* @param string|null $id
* @param int|string|null $id
*
* @return Response|string|void
*/