Skip to content

Instantly share code, notes, and snippets.

@FrancisVarga
Created December 8, 2011 16:11
Show Gist options
  • Select an option

  • Save FrancisVarga/1447454 to your computer and use it in GitHub Desktop.

Select an option

Save FrancisVarga/1447454 to your computer and use it in GitHub Desktop.
<?php
/**
* @param $request
*
* @return object
*/
public function disputePaidChallenge($request)
{
$betRequest = new \Application\JsonRpc\V1\App\Request\ChallengeRequest();
$paidDisputeData = $betRequest->getDisputePaidChallengeData($request);
$manager = new \Application\Manager\Challenge\DisputePaidChallengeManager();
return $manager->setUpdateStatusData($paidDisputeData)->setDto(new \Application\Dto\BetDto())->export();
}
/**
* @param $request
*
* @return object
*/
public function drawChallenge($request)
{
$challengeRequest = new \Application\JsonRpc\V1\App\Request\ChallengeRequest();
$manager = new \Application\Manager\Challenge\DrawChallengeData();
return $manager->setUpdateStatusData($challengeRequest->getDrawChallengeData($request))
->setDto(new \Application\Dto\BetDto())
->export();
}
/**
* @param $request
*
* @return object
*/
public function drawChallenge($request)
{
$challengeRequest = new \Application\JsonRpc\V1\App\Request\ChallengeRequest();
$manager = new \Application\Manager\Challenge\DrawChallengeData();
return $manager
->setUpdateStatusData($challengeRequest->getDrawChallengeData($request))
->setDto(new \Application\Dto\BetDto())
->export();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment