Location: PHPKode > scripts > TeeWorlds Server Stats > teeworlds-server-stats/TeeWorldsPlayer.php
<?php

/**
 * TeeWorldsPlayer class
 *
 * Stores Tee Worlds player information.
 *
 * @copyright  2009 Tomaž Muraus
 * @license    http://www.gnu.org/copyleft/gpl.html   GPL License
 * @version    Release: 1.0
 * @link       http://www.tomaz-muraus.info
 */
class TeeWorldsPlayer
{
    protected $_name;
    protected $_score;

    /**
     * Constructor.
     *
     * @param string $name Player name.
     * @param int $score Player score.
     */
    public function __construct($name, $score)
    {
        $this->_name = $name;
        $this->_score = $score;
    }

    public function getName()
    {
        return $this->_name;
    }

    public function getScore()
    {
        return $this->_score;
    }
}

/* End of file TeeWorldsPlayer.php */
/* Location: ./TeeWorldsPlayer.php */
Return current item: TeeWorlds Server Stats