Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __construct($gameDetails) |
||
16 | { |
||
17 | $gameId = $this->checkIssetField($gameDetails, 'gameid'); |
||
18 | |||
19 | $this->serverIp = $this->checkIssetField($gameDetails, 'gameserverip'); |
||
20 | $this->serverSteamId = $this->checkIssetField($gameDetails, 'gameserversteamid'); |
||
21 | $this->extraInfo = $this->checkIssetField($gameDetails, 'gameextrainfo'); |
||
22 | $this->gameId = is_null($gameId) ? null : (int)$gameId; |
||
23 | } |
||
24 | } |
||
25 |