Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
add table number to query result
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcikmat committed Mar 27, 2017
1 parent 5b56d36 commit 1980e05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MaciejSz/NbpPhp/NbpRateTuple.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class NbpRateTuple
*/
public $date = null;

/**
* @var null|string
*/
public $tableNumber = null;

/**
* @param \SimpleXMLElement $Sx
* @param null|\SimpleXMLElement $SxRoot [optional]
Expand All @@ -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);
Expand Down

0 comments on commit 1980e05

Please sign in to comment.