mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			332 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			332 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Moserware\Skills\Elo;
 | 
						|
 | 
						|
class KFactor
 | 
						|
{
 | 
						|
    const DEFAULT_KFACTOR = 24;
 | 
						|
    
 | 
						|
    private $_value;
 | 
						|
 | 
						|
    public function __construct($exactKFactor = self::DEFAULT_KFACTOR)
 | 
						|
    {
 | 
						|
        $this->_value = $exactKFactor;
 | 
						|
    }
 | 
						|
 | 
						|
    public function getValueForRating($rating)
 | 
						|
    {
 | 
						|
        return $this->_value;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
?>
 |