PHP Класс Rating\Rating

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_expectedA
$_expectedB
$_newRatingA
$_newRatingB
$_ratingA Protected & private variables.
$_ratingB
$_scoreA
$_scoreB

Открытые методы

Метод Описание
__construct ( $ratingA, $ratingB, $scoreA, $scoreB ) Costructor function which does all the maths and stores the results ready for retrieval.
getNewRatings ( ) : Array Retrieve the calculated data.
setNewSettings ( $ratingA, $ratingB, $scoreA, $scoreB ) Set new input data.

Защищенные методы

Метод Описание
_getExpectedScores ( $ratingA, $ratingB ) Protected & private functions begin here
_getNewRatings ( $ratingA, $ratingB, $expectedA, $expectedB, $scoreA, $scoreB )

Описание методов

__construct() публичный Метод

Costructor function which does all the maths and stores the results ready for retrieval.
public __construct ( $ratingA, $ratingB, $scoreA, $scoreB )

_getExpectedScores() защищенный Метод

Protected & private functions begin here
protected _getExpectedScores ( $ratingA, $ratingB )

_getNewRatings() защищенный Метод

protected _getNewRatings ( $ratingA, $ratingB, $expectedA, $expectedB, $scoreA, $scoreB )

getNewRatings() публичный Метод

Retrieve the calculated data.
public getNewRatings ( ) : Array
Результат Array An array containing the new ratings for A and B.

setNewSettings() публичный Метод

Set new input data.
public setNewSettings ( $ratingA, $ratingB, $scoreA, $scoreB )

Описание свойств

$_expectedA защищенное свойство

protected $_expectedA

$_expectedB защищенное свойство

protected $_expectedB

$_newRatingA защищенное свойство

protected $_newRatingA

$_newRatingB защищенное свойство

protected $_newRatingB

$_ratingA защищенное свойство

Protected & private variables.
protected $_ratingA

$_ratingB защищенное свойство

protected $_ratingB

$_scoreA защищенное свойство

protected $_scoreA

$_scoreB защищенное свойство

protected $_scoreB