From 7c8529b43a63eb062f7bff32476d7be6222bd699 Mon Sep 17 00:00:00 2001 From: florianv Date: Sat, 3 Jun 2017 10:22:24 +0200 Subject: [PATCH] Updated documentation about the php array service --- doc/readme.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/readme.md b/doc/readme.md index 006f6c9..8bcdea7 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -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()