Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class GuzzleEvents |
||
8 | { |
||
9 | const PRE_TRANSACTION = 'eight_points_guzzle.pre_transaction'; |
||
10 | |||
11 | const POST_TRANSACTION = 'eight_points_guzzle.post_transaction'; |
||
12 | |||
13 | const EVENTS = [ |
||
14 | self::PRE_TRANSACTION, |
||
15 | self::POST_TRANSACTION, |
||
16 | ]; |
||
17 | |||
18 | public static function preTransactionFor(string $serviceName): string |
||
19 | { |
||
20 | return sprintf('%s.%s', self::PRE_TRANSACTION, $serviceName); |
||
21 | } |
||
22 | |||
23 | public static function postTransactionFor(string $serviceName): string |
||
26 | } |
||
27 | } |
||
28 |