Skip to content

Commit

Permalink
Updated documentation about the php array service
Browse files Browse the repository at this point in the history
  • Loading branch information
florianv committed Jun 3, 2017
1 parent ff9d464 commit 7c8529b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,20 @@ $service = new Chain([
new Google(),
new NationalBankOfRomania(),
new OpenExchangeRates($client, null, ['app_id' => 'app_id', 'enterprise' => false]),
new PhpArray(['EUR/USD' => new ExchangeRate('1.5')]),
new PhpArray(
[
'EUR/USD' => new ExchangeRate('1.1'),
'EUR/GBP' => 1.5
],
[
'2017-01-01' => [
'EUR/USD' => new ExchangeRate('1.5')
],
'2017-01-03' => [
'EUR/GBP' => 1.3
],
]
),
new WebserviceX(),
new Xignite($client, null, ['token' => 'token']),
new Yahoo()
Expand Down

0 comments on commit 7c8529b

Please sign in to comment.