Created
December 8, 2011 16:11
-
-
Save FrancisVarga/1447454 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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