_action; } /** * * set action object * * @param \Cube\Controller\Action\AbstractAction $action * @return \Cube\Controller\Action\Helper\AbstractHelper */ public function setAction(AbstractAction $action) { $this->_action = $action; return $this; } /** * * get request object from action controller or front controller * * @return \Cube\Controller\Request\AbstractRequest */ public function getRequest() { $action = $this->getAction(); if ($action === null) { $action = Front::getInstance(); } return $action->getRequest(); } /** * * get response object from action controller or front controller * * @return \Cube\Controller\Response\ResponseInterface */ public function getResponse() { $action = $this->getAction(); if ($action === null) { $action = Front::getInstance(); } return $action->getResponse(); } }