/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'LaPrimitiva') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$laPrimitivaLotto = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::LaPrimitiva) {
        return $value;
    }
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'EuroJackpot') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$euroJackpotLotto = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
/*$response4 = $lottoService->getGroupPricesAndDiscounts(4);
$response8 = $lottoService->getGroupPricesAndDiscounts(8);
$response26 = $lottoService->getGroupPricesAndDiscounts(26);*/
foreach ($response1 as $val) {
    if ($val->LotteryTypeId == $euroJackpotLotto->LotteryTypeId) {
        $drawGroupPrice1 = $val->Price;
        break;
    }
}
Exemple #3
0
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'ElGordo') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$elgordoLotto = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::ElGordo) {
        return $value;
    }
Exemple #4
0
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'UkLotto') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$ukInfo = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(12);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::UKLotto) {
        return $value;
    }
Exemple #5
0
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'SuperEnalotto') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$superEnaInfo = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::SuperEnalotto) {
        return $value;
    }
Exemple #6
0
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'Lotto649') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$lotto649Info = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::Canada649) {
        return $value;
    }
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'EuroMillions') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$euroMillionInfo = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
/*$response4 = $lottoService->getGroupPricesAndDiscounts(4);
$response8 = $lottoService->getGroupPricesAndDiscounts(8);
$response26 = $lottoService->getGroupPricesAndDiscounts(26);*/
foreach ($response1 as $val) {
    if ($val->LotteryTypeId == $euroMillionInfo->LotteryTypeId) {
        $drawGroupPrice1 = $val->Price;
        break;
    }
}
exit;
*/
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'MegaMillions') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$megaMillions = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
/*$response4 = $lottoService->getGroupPricesAndDiscounts(4);
$response8 = $lottoService->getGroupPricesAndDiscounts(8);
$response26 = $lottoService->getGroupPricesAndDiscounts(26);*/
foreach ($response1 as $val) {
    if ($val->LotteryTypeId == $megaMillions->LotteryTypeId) {
        $drawGroupPrice1 = $val->Price;
        break;
    }
}
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'BonoLoto') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$bonoLoto = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(1);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::BonoLoto) {
        return $value;
    }
Exemple #10
0
/** @var Draw[] $drawsData */
$drawsData = $response->data;
/**
 * @param Draw[] $draws
 * @return Draw
 */
function getPowerball($draws)
{
    foreach ($draws as $draw) {
        if ($draw->LotteryName == 'NewYorkLotto') {
            return $draw;
        }
    }
    return "Lottery Missing";
}
$newYorkInfo = getPowerball($drawsData);
//Prices Stuff
$response = $lottoService->getPersonalPricesAndDiscounts();
if (!$response->success) {
    //error handling
}
$response1 = $lottoService->getGroupPricesAndDiscounts(14);
if (!$response1->success) {
    //error handling
}
/** @var \WegeTech\LottoYard\Model\PriceAndDiscount[] $powerBallPrices */
$powerBallPrices = array_filter($response->data, function ($value) {
    /** @var \WegeTech\LottoYard\Model\PriceAndDiscount $value */
    if ($value->LotteryTypeId == \WegeTech\LottoYard\Model\LotteryTypes::NYLotto) {
        return $value;
    }