Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
21 | public function __construct($achievement) |
||
22 | { |
||
23 | $this->apiName = (string) $achievement->apiname; |
||
24 | $this->achieved = (int)(string) $achievement['closed']; |
||
25 | $this->name = (string) $achievement->name; |
||
26 | $this->description = (string) $achievement->description; |
||
27 | $this->icon = (string) $achievement->iconClosed; |
||
28 | $this->iconGray = (string) $achievement->iconOpen; |
||
29 | $this->unlockTimestamp = isset($achievement->unlockTimestamp) ? (int)(string) $achievement->unlockTimestamp : null; |
||
30 | } |
||
31 | } |
||
32 |