From 1980e0520ffdb3f5120e3a8fc75be179c7d9b474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20W=C3=B3jcik?= Date: Mon, 27 Mar 2017 15:56:06 +0200 Subject: [PATCH] add table number to query result --- src/MaciejSz/NbpPhp/NbpRateTuple.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MaciejSz/NbpPhp/NbpRateTuple.php b/src/MaciejSz/NbpPhp/NbpRateTuple.php index 1d769cb..81a1a9f 100644 --- a/src/MaciejSz/NbpPhp/NbpRateTuple.php +++ b/src/MaciejSz/NbpPhp/NbpRateTuple.php @@ -23,6 +23,11 @@ class NbpRateTuple */ public $date = null; + /** + * @var null|string + */ + public $tableNumber = null; + /** * @param \SimpleXMLElement $Sx * @param null|\SimpleXMLElement $SxRoot [optional] @@ -36,6 +41,7 @@ public static function fromNbpXml( $Instance = new self(); $Instance->currency_name = (string)$Sx->nazwa_waluty; $Instance->currency_code = (string)$Sx->kod_waluty; + $Instance->tableNumber = (string)$SxRoot->numer_tabeli; $multiplier = self::_makeFloat($Sx->przelicznik); $Instance->avg = $multiplier * self::_makeFloat($Sx->kurs_sredni);