BetItem.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Game\BetBy;
  3. class BetItem
  4. {
  5. public $id;
  6. public $event_id;
  7. public $sport_id;
  8. public $tournament_id;
  9. public $category_id;
  10. public $live;
  11. public $sport_name;
  12. public $category_name;
  13. public $tournament_name;
  14. public $competitor_name;
  15. public $market_name;
  16. public $outcome_name;
  17. public $scheduled;
  18. public $odds;
  19. public function __construct(array $data)
  20. {
  21. $this->id = $data['id'];
  22. $this->event_id = $data['event_id'];
  23. $this->sport_id = $data['sport_id'];
  24. $this->tournament_id = $data['tournament_id'];
  25. $this->category_id = $data['category_id'];
  26. $this->live = $data['live'];
  27. $this->sport_name = $data['sport_name'];
  28. $this->category_name = $data['category_name'];
  29. $this->tournament_name = $data['tournament_name'];
  30. $this->competitor_name = $data['competitor_name'];
  31. $this->market_name = $data['market_name'];
  32. $this->outcome_name = $data['outcome_name'];
  33. $this->scheduled = $data['scheduled'];
  34. $this->odds = $data['odds'];
  35. }
  36. }