예제 #1
0
파일: Odds.php 프로젝트: andou/instantwin
 /**
  * 
  * @return boolean
  */
 public function check()
 {
     return \Andou\InstantWin::app()->getRand()->rand() <= \Andou\Instantwin::app()->getDistribution()->getOdds();
 }
예제 #2
0
 /**
  * Restituisce il numero massimo di vittore nel corso del periodo stabilito
  * 
  * @return int
  */
 protected function getMaxWin()
 {
     return \Andou\Instantwin::app()->getConfig()->getWinsMax();
 }
예제 #3
0
파일: File.php 프로젝트: andou/instantwin
 protected function getResFolder()
 {
     return \Andou\Instantwin::app()->getBasePath() . self::$_res_folder;
 }