return = $return; foreach ($params as $param) { if (! $param instanceof ReflectionParameter) { throw new Exception\InvalidArgumentException('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 * * @return \Laminas\Server\Reflection\ReflectionReturnValue */ public function getReturnValue() { return $this->return; } /** * Retrieve method parameters * * @return ReflectionParameter[] Array of {@link \Laminas\Server\Reflection\ReflectionParameter}s */ public function getParameters() { return $this->params; } }