Customer.php 573 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Paystack;
  3. use Paystack\Interfaces\IResource;
  4. use Paystack\Traits\ResourceTrait;
  5. class Customer implements IResource
  6. {
  7. use ResourceTrait;
  8. protected static $resourceUrl = '/customer';
  9. public static function create(array $param)
  10. {
  11. return self::_create(self::url(), $param);
  12. }
  13. public static function get($id)
  14. {
  15. return self::_get(self::url('/'.$id));
  16. }
  17. public static function all()
  18. {
  19. throw new \Exception();
  20. }
  21. public function save()
  22. {
  23. throw new \Exception();
  24. }
  25. }
  26. ?>