示例#1
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     if (Veikkaus::getInstance()->getReturnMode() === 'raw') {
         return $this->getRawData();
     }
     return array('year' => $this->getYear(), 'round' => $this->getRound(), 'numbers' => $this->getNumbers());
 }
示例#2
0
 public function run()
 {
     //		Veikkaus::getInstance()->setReturnMode('raw');
     for ($i = 1; $i < date('W'); $i++) {
         echo "Round {$i} of 2016";
         var_dump(json_decode(json_encode(Veikkaus::getInstance()->getLottoRound(2016, $i)), true));
         exit;
     }
 }
示例#3
0
 public function run()
 {
     $cli = fopen('php://stdin', 'r');
     while (empty($username)) {
         echo "Username?" . PHP_EOL;
         $username = trim(fgets($cli));
     }
     while (empty($password)) {
         echo "Password?" . PHP_EOL;
         $password = trim(fgets($cli));
     }
     fclose($cli);
     $userInfo = Veikkaus::getInstance()->login($username, $password);
     //		var_dump($userInfo);
     var_dump(Veikkaus::getInstance()->getBalance());
 }
示例#4
0
 public function run()
 {
     var_dump(Veikkaus::getInstance()->getMultiscore());
 }