/** * @return array */ public function jsonSerialize() { if (Veikkaus::getInstance()->getReturnMode() === 'raw') { return $this->getRawData(); } return array('year' => $this->getYear(), 'round' => $this->getRound(), 'numbers' => $this->getNumbers()); }
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; } }
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()); }
public function run() { var_dump(Veikkaus::getInstance()->getMultiscore()); }