PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Repository / Payment / PaymentRepositoryInterface.php

PaymentRepositoryInterface.php in The Innovative Form Builder – IvyForms 1.5.1, at backend/src/Repository/Payment/PaymentRepositoryInterface.php

49 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Repository\Payment;
4
5 use IvyForms\Entity\Payment\Payment;
6
7 interface PaymentRepositoryInterface
8 {
9 /**
10 * @param Payment $entity
11 * @return int
12 */
13 public function add($entity): int;
14
15 /**
16 * @param int $entryId
17 * @return Payment|null
18 */
19 public function getByEntryId(int $entryId): ?Payment;
20
21 public function existsByTransactionId(string $transactionId): bool;
22
23 public function getByTransactionId(string $transactionId): ?Payment;
24
25 public function findByProviderOrderId(string $orderId): ?Payment;
26
27 public function updateStatus(int $id, string $status): bool;
28
29 public function update(Payment $entity): void;
30
31 /**
32 * @param array<string, mixed>|null $params
33 * @return array<string, mixed>
34 */
35 public function search(?array $params): array;
36
37 /**
38 * @param array<string, mixed>|null $params
39 * @return int
40 */
41 public function getCount(?array $params): int;
42
43 /**
44 * @param int $id
45 * @return int
46 */
47 public function delete(int $id): int;
48 }
49