I am using PHPDoc standards for commenting PHP(laravel) code and ApiGen to generate an API Documentation.
I know that there are many Tags that can be used to present information.
define() statements, functions, classes, class methods, and class vars, include() statements, and global variables can all be documented.
But now I want to document variables that are in a function.
for example suppose I have a function like this :
/**
* @param Request $request
* @param $course_id
* @param $lesson_id
* @param Content $content
*
* @return array
*
*/
public function SaveOnePageTest (Request $request, $course_id, $lesson_id, \App\Content $content)
{
/**
*I want to document this variable that how does this and What used to be?
*/
$doneTest = DoneTest::find($done_test_id);
/**
*or this variable
*/
$parentQuestions = $doneTest->parent_test->questions;
}
Is there a solution to this case?