PaymentProviderConfigIpay88Kh   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

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