lib/SteamCondenser/Servers/SteamPlayer.php
public function addInformation($playerData) {
        if($playerData['name'] != $this->name) {
            throw new SteamCondenserException('Information to add belongs to a different player.');
        }

        $this->extended = true;
        $this->connectionId = intval($playerData['userid']);
        if(array_key_exists('state', $playerData)) {
            $this->state = $playerData['state'];
        }
        $this->steamId = $playerData['uniqueid'];

        if(!$this->isBot()) {
            $this->loss = intval($playerData['loss']);
            $this->ping = intval($playerData['ping']);

            if(array_key_exists('adr', $playerData)) {
                $address = explode(':', $playerData['adr']);
                $this->ipAddress  = $address[0];
                $this->clientPort = intval($address[1]);
            }

            if(array_key_exists('rate', $playerData)) {
                $this->rate = $playerData['rate'];
            }
        }
    }
public function addInformation($playerData) {
        if($playerData['name'] != $this->name) {
            throw new SteamCondenserException('Information to add belongs to a different player.');
        }

        $this->extended = true;
        $this->connectionId = intval($playerData['userid']);
        if(array_key_exists('state', $playerData)) {
            $this->state = $playerData['state'];
        }
        $this->steamId = $playerData['uniqueid'];

        if(!$this->isBot()) {
            $this->loss = intval($playerData['loss']);
            $this->ping = intval($playerData['ping']);

            if(array_key_exists('adr', $playerData)) {
                $address = explode(':', $playerData['adr']);
                $this->ipAddress  = $address[0];
                $this->clientPort = intval($address[1]);
            }

            if(array_key_exists('rate', $playerData)) {
                $this->rate = $playerData['rate'];
            }
        }
    }
Extends a player object with information retrieved from a RCON call to
the status command

@param string $playerData The player data retrieved from
<var>rcon status</var>
@throws SteamCondenserException if the information belongs to another
player