_return = $return; if (!is_array($params) && (null !== $params)) { require_once 'Zend/Server/Reflection/Exception.php'; throw new Zend_Server_Reflection_Exception('Invalid parameters'); } if (is_array($params)) { foreach ($params as $param) { if (!$param instanceof Zend_Server_Reflection_Parameter) { require_once 'Zend/Server/Reflection/Exception.php'; throw new Zend_Server_Reflection_Exception('One or more params are invalid'); } } } $this->_params = $params; } /** * Retrieve return type * * @return string */ public function getReturnType() { return $this->_return->getType(); } /** * Retrieve the return value object * * @access public * @return Zend_Server_Reflection_ReturnValue */ public function getReturnValue() { return $this->_return; } /** * Retrieve method parameters * * @return array Array of {@link Zend_Server_Reflection_Parameter}s */ public function getParameters() { return $this->_params; } }