/** * Determines adjusted pre-match rankings and sets rating gap accordingly. * * @param \RugbyRankings\RatingsInput $input */ public function __construct(RatingsInput $input) { // set adjusted pre match ranking points $this->setPreMatchRatings($input->getTeamARating(), $input->getTeamBRating()); $this->ratingsInput = $input; $this->worldCup = $input->isRugbyWorldCup(); $this->matchResult = new MatchResult($this->teamAPreMatchRating, $this->teamBPreMatchRating, $input->getTeamAScore(), $input->getTeamBScore()); // determine ratings gap $this->setRatingsGap(); }