我需要这方面的帮助,当我在编写 PHPDoc 时,我不知道如何为方法指定发布变量。在这段代码中:
/**
* Show Quarter Base Hour
* GET: Show select Menu | POST: Get Quarter Base Hour View
*
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function manageQuarterBaseHourAction()
{
$form = $this->createForm(new QuarterBaseHour(), null, array('attr' => $this->container->get('formdata')->getSearchAll()));
if ($this->getRequest()->isMethod('POST')) {
$form->handleRequest($this->getRequest());
if ($form->isValid()) {
$data = $form->getData();
$year = $data['year'];
$universe = $data['iduniverso'];
$ficticious = $data['ficticious'];
$quarter = $data['quarter'];
...
指定该方法接受获取/发布请求的最佳方法以及我如何具体发布参数,因为如果我写@param 仅用于获取参数并且验证器会使我出错。谢谢。