PaymentService.php 688 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wuzhenke
  5. * Date: 2018/12/9
  6. * Time: 15:22
  7. */
  8. namespace App\Services\Common;
  9. use App\Repositories\PaymentRepository;
  10. class PaymentService
  11. {
  12. protected $paymentRepository;
  13. /**
  14. * PaymentService constructor.
  15. * @param $paymentRepository
  16. */
  17. public function __construct(PaymentRepository $paymentRepository)
  18. {
  19. $this->paymentRepository = $paymentRepository;
  20. }
  21. public function returnPayment($payment)
  22. {
  23. return $this->paymentRepository->returnPayment($payment);
  24. }
  25. public function getPayment($whereIn)
  26. {
  27. return $this->paymentRepository->getPayments($whereIn);
  28. }
  29. }