Commit 92a1d2c9 authored by Dorian Villet's avatar Dorian Villet

Improve PHPDocs (adding missing @throws, @return etc).

parent 7bc75218
......@@ -136,6 +136,7 @@ class PeclHttp extends Configurable implements AdapterInterface
* @param Request $request
* @param Endpoint $endpoint
* @param HttpRequest
* @return \HttpRequest
*/
public function toHttpRequest($request, $endpoint)
{
......
......@@ -161,6 +161,7 @@ class ZendHttp extends Configurable implements AdapterInterface
* Execute a Solr request using the Zend_Http_Client instance
*
* @throws HttpException
* @throws OutOfBoundsException
* @param Request $request
* @param Endpoint $endpoint
* @return Response
......@@ -210,6 +211,7 @@ class ZendHttp extends Configurable implements AdapterInterface
* Prepare a solarium response from the given request and client
* response
*
* @throws HttpException
* @param Request $request
* @param \Zend_Http_Response $response
* @return Response
......
......@@ -324,6 +324,7 @@ class Request extends Configurable
/**
* Set the file to upload via "multipart/form-data" POST request
*
* @throws RuntimeException
* @param string $filename Name of file to upload
* @return self
*/
......
......@@ -136,7 +136,8 @@ class Result implements ResultInterface
*
* Includes a lazy loading mechanism: JSON body data is decoded on first use and then saved for reuse.
*
* @throws UnexpectedValueException, RuntimeException
* @throws UnexpectedValueException
* @throws RuntimeException
* @return array
*/
public function getData()
......
......@@ -484,6 +484,7 @@ class Loadbalancer extends Plugin
/**
* Execute a request using the adapter
*
* @throws RuntimeException
* @param Request $request
* @return Response $response
*/
......
......@@ -58,7 +58,8 @@ class RequestBuilder extends BaseRequestBuilder
/**
* Build the request
*
* @param Query $query
* @throws RuntimeException
* @param Query|QueryInterface $query
* @return Request
*/
public function build(QueryInterface $query)
......
......@@ -391,6 +391,7 @@ class Document extends AbstractDocument implements DocumentInterface
*
* Adds validation for atomicUpdates
*
* @throws RuntimeException
* @return array
*/
public function getFields()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment