diff --git a/src/Exchange.php b/src/Exchange.php index d10948c..7a5be70 100644 --- a/src/Exchange.php +++ b/src/Exchange.php @@ -23,7 +23,7 @@ class Exchange { private $url = "api.fixer.io"; /** - * Date when an historical query is made + * Date when an historical call is made * @var string */ private $date; @@ -54,7 +54,7 @@ class Exchange { private $asObject = false; /** - * @param $guzze Guzzle client + * @param $guzzle Guzzle client */ public function __construct($guzzle = null) { @@ -69,7 +69,7 @@ public function __construct($guzzle = null) /** * Sets the protocol to https * - * @return Fadion\Fixerio\Exchange + * @return Exchange */ public function secure() { @@ -82,7 +82,7 @@ public function secure() * Sets the base currency * * @param string $currency - * @return Fadion\Fixerio\Exchange + * @return Exchange */ public function base($currency) { @@ -92,11 +92,12 @@ public function base($currency) } /** - * Sets the currencies to return in either a - * list of arguments or as an array + * Sets the currencies to return. + * Expects either a list of arguments or + * a single argument as array * * @param array $currencies - * @return Fadion\Fixerio\Exchange + * @return Exchange */ public function symbols($currencies = null) { @@ -115,7 +116,7 @@ public function symbols($currencies = null) * for any day since the selected date * * @param string $date - * @return Fadion\Fixerio\Exchange + * @return Exchange */ public function historical($date) { @@ -128,7 +129,7 @@ public function historical($date) * Sets the returned response to be an object, * as opposed to an array * - * @return Fadion\Fixerio\Exchange + * @return Exchange */ public function asObject() { @@ -165,7 +166,7 @@ public function get() return $this->prepareResponse($response); } // The client needs to know only one exception, no - // matter what exceptions is thrown by Guzzle + // matter what exception is thrown by Guzzle catch (ConnectException $e) { throw new ConnectionException($e->getMessage()); }