League.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. class League
  3. {
  4. public $leagueId;
  5. public $leagueName;
  6. public $lookback;
  7. public $betMargin;
  8. public $lookbackHome;
  9. public $lookbackDraw;
  10. public $lookbackAway;
  11. public $betMarginHome;
  12. public $betMarginDraw;
  13. public $betMarginAway;
  14. public $scoringDiffLastGame;
  15. public $scoringTotal;
  16. public $winLossRatioHomeAndAway;
  17. public $winLossRatio;
  18. private $drawDiffHomeAway;
  19. private $drawTotalGoals;
  20. private $drawWinningForm;
  21. private $drawWinningFormHomeAway;
  22. public function __construct(
  23. $leagueId,
  24. $leagueName,
  25. $scoringDiffLastGame,
  26. $scoringTotal,
  27. $winLossRatioHomeAndAway,
  28. $winLossRatio,
  29. $drawDiffHomeAway,
  30. $drawTotalGoals,
  31. $drawWinningForm,
  32. $drawWinningFormHomeAway
  33. ) {
  34. $this->leagueId = $leagueId;
  35. $this->leagueName = $leagueName;
  36. $this->scoringDiffLastGame = $scoringDiffLastGame;
  37. $this->scoringTotal = $scoringTotal;
  38. $this->winLossRatioHomeAndAway = $winLossRatioHomeAndAway;
  39. $this->winLossRatio = $winLossRatio;
  40. $this->drawDiffHomeAway = $drawDiffHomeAway;
  41. $this->drawTotalGoals = $drawTotalGoals;
  42. $this->drawWinningForm = $drawWinningForm;
  43. $this->drawWinningFormHomeAway = $drawWinningFormHomeAway;
  44. }
  45. public function getBetMargin()
  46. {
  47. return $this->betMargin;
  48. }
  49. public function getBetMarginAway()
  50. {
  51. return $this->betMarginAway;
  52. }
  53. public function getBetMarginDraw()
  54. {
  55. return $this->betMarginDraw;
  56. }
  57. public function getBetMarginHome()
  58. {
  59. return $this->betMarginHome;
  60. }
  61. public function getDrawDiffHomeAway()
  62. {
  63. return $this->drawDiffHomeAway;
  64. }
  65. public function getDrawTotalGoals()
  66. {
  67. return $this->drawTotalGoals;
  68. }
  69. public function getDrawWinningForm()
  70. {
  71. return $this->drawWinningForm;
  72. }
  73. public function getDrawWinningFormHomeAway()
  74. {
  75. return $this->drawWinningFormHomeAway;
  76. }
  77. public function getLeagueId()
  78. {
  79. return $this->leagueId;
  80. }
  81. public function getLeagueName()
  82. {
  83. return $this->leagueName;
  84. }
  85. public function getLookback()
  86. {
  87. return $this->lookback;
  88. }
  89. public function getLookbackAway()
  90. {
  91. return $this->lookbackAway;
  92. }
  93. public function getLookbackDraw()
  94. {
  95. return $this->lookbackDraw;
  96. }
  97. public function getLookbackHome()
  98. {
  99. return $this->lookbackHome;
  100. }
  101. public function getScoringDiffLastGame()
  102. {
  103. return $this->scoringDiffLastGame;
  104. }
  105. public function getScoringTotal()
  106. {
  107. return $this->scoringTotal;
  108. }
  109. public function getWinLossRatio()
  110. {
  111. return $this->winLossRatio;
  112. }
  113. public function getWinLossRatioHomeAndAway()
  114. {
  115. return $this->winLossRatioHomeAndAway;
  116. }
  117. public function setBetMargin($betMargin)
  118. {
  119. $this->betMargin = $betMargin;
  120. }
  121. public function setBetMarginAway($betMargin)
  122. {
  123. $this->betMarginAway = $betMargin;
  124. }
  125. }