PaymentProviderConfigPipayKh   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A paymentMethodConfigValidation() 0 14 1
1
<?php declare(strict_types=1);
2
3
namespace Getloy\PaymentProviders\Configuration;
4
5
use Getloy\PaymentProviders\Configuration\PaymentProviderConfig;
6
7
class PaymentProviderConfigPipayKh extends PaymentProviderConfig
8
{
9
    /**
10
     * Generate validation configuration for payment method-specific configuration options.
11
     * @return array Validation configuration
12
     */
13
    protected function paymentMethodConfigValidation(): array
14
    {
15
        return [
16
            'merchantId' => [
17
                'type' => 'string',
18
                'required' => true,
19
            ],
20
            'storeId' => [
21
                'type' => 'string',
22
                'required' => true,
23
            ],
24
            'deviceId' => [
25
                'type' => 'string',
26
                'required' => true,
27
            ],
28
        ];
29
    }
30
}
31