Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. class Marketplace extends Curl
  3. {
  4. public function getOffers()
  5. {
  6. $this->get('/marketplace/offers');
  7.  
  8. return $this->getResponseBody();
  9. }
  10. }
  11.  
  12. <?php
  13. class Marketplace
  14. {
  15. private $_curl;
  16.  
  17. public function __construct(Curl $curl)
  18. {
  19. $this->_curl = $curl;
  20. }
  21.  
  22. public function getOffers()
  23. {
  24. $this->_curl->get('/marketplace/offers');
  25.  
  26. return $this->_curl->getResponseBody();
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement