Skip to content

Commit

Permalink
Add getCards on national player
Browse files Browse the repository at this point in the history
  • Loading branch information
jetwitaussi committed Nov 5, 2021
1 parent 8fb04a6 commit f784127
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PHT/Config/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Version
const MATCHESARCHIVE = '1.3';
const MATCHLINEUP = '2.0';
const MATCHORDERS = '3.0';
const NATIONALPLAYERS = '1.3';
const NATIONALPLAYERS = '1.4';
const NATIONALTEAMDETAILS = '1.9';
const NATIONALTEAMMATCHES = '1.3';
const NATIONALTEAMS = '1.5';
Expand Down
10 changes: 10 additions & 0 deletions PHT/Xml/Player/National.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ public function getName()
return $this->getXml()->getElementsByTagName('PlayerName')->item(0)->nodeValue;
}

/**
* Return player cards number
*
* @return string
*/
public function getCards()
{
return $this->getXml()->getElementsByTagName('Cards')->item(0)->nodeValue;
}

/**
* Get full player details
*
Expand Down

0 comments on commit f784127

Please sign in to comment.