Commit | Line | Data |
---|---|---|
6a488035 | 1 | <?php |
aba1cd8b EM |
2 | |
3 | /** | |
4 | * Class test_extension_manager_paymenttest | |
5 | */ | |
6a488035 | 6 | class test_extension_manager_paymenttest extends CRM_Core_Payment { |
6a488035 | 7 | |
39b959db | 8 | public static $counts = array(); |
6a488035 | 9 | |
3bdca100 | 10 | public function install() { |
511e9a21 | 11 | self::$counts['install'] = self::$counts['install'] ?? 0; |
6a488035 TO |
12 | self::$counts['install'] = 1 + (int) self::$counts['install']; |
13 | } | |
14 | ||
3bdca100 | 15 | public function uninstall() { |
511e9a21 | 16 | self::$counts['uninstall'] = self::$counts['uninstall'] ?? 0; |
6a488035 TO |
17 | self::$counts['uninstall'] = 1 + (int) self::$counts['uninstall']; |
18 | } | |
19 | ||
3bdca100 | 20 | public function disable() { |
511e9a21 | 21 | self::$counts['disable'] = self::$counts['disable'] ?? 0; |
6a488035 TO |
22 | self::$counts['disable'] = 1 + (int) self::$counts['disable']; |
23 | } | |
24 | ||
3bdca100 | 25 | public function enable() { |
511e9a21 | 26 | self::$counts['enable'] = self::$counts['enable'] ?? 0; |
6a488035 TO |
27 | self::$counts['enable'] = 1 + (int) self::$counts['enable']; |
28 | } | |
29 | ||
3bdca100 | 30 | public function checkConfig() { |
6a488035 | 31 | } |
96025800 | 32 | |
6b812400 EM |
33 | /** |
34 | * Get the desired value from $counts. | |
35 | * | |
36 | * @param string $type | |
37 | * | |
38 | * @return int | |
39 | */ | |
40 | public static function getCount($type) { | |
511e9a21 | 41 | return self::$counts[$type] ?? 0; |
6b812400 EM |
42 | } |
43 | ||
4cbe18b8 | 44 | } |