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);