Skip to content

Commit

Permalink
Add getTitle on achievements
Browse files Browse the repository at this point in the history
  • Loading branch information
jetwitaussi committed Nov 5, 2021
1 parent 7711714 commit b4c3f1a
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 @@ -15,7 +15,7 @@

class Version
{
const ACHIEVEMENTS = '1.1';
const ACHIEVEMENTS = '1.2';
const ALLIANCEDETAILS = '1.5';
const ALLIANCES = '1.4';
const ARENADETAILS = '1.5';
Expand Down
10 changes: 10 additions & 0 deletions PHT/Xml/User/Achievement/Success.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ public function getType()
return $this->getXml()->getElementsByTagName('AchievementTypeID')->item(0)->nodeValue;
}

/**
* Return achievement text
*
* @return string
*/
public function getTitle()
{
return $this->getXml()->getElementsByTagName('AchievementTitle')->item(0)->nodeValue;
}

/**
* Return achievement text
*
Expand Down

0 comments on commit b4c3f1a

Please sign in to comment.