Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fadion committed Nov 18, 2015
1 parent 55a4e5c commit 88e7fd6
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -54,7 +54,7 @@ class Exchange {
private $asObject = false;

/**
* @param $guzze Guzzle client
* @param $guzzle Guzzle client
*/
public function __construct($guzzle = null)
{
Expand All @@ -69,7 +69,7 @@ public function __construct($guzzle = null)
/**
* Sets the protocol to https
*
* @return Fadion\Fixerio\Exchange
* @return Exchange
*/
public function secure()
{
Expand All @@ -82,7 +82,7 @@ public function secure()
* Sets the base currency
*
* @param string $currency
* @return Fadion\Fixerio\Exchange
* @return Exchange
*/
public function base($currency)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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()
{
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 88e7fd6

Please sign in to comment.