Passed
Push — master ( b0573e...b2a2f5 )
by Olha
05:18
created

MultiFactorAuthConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRestApiMultiFactorAuthProtectedResources() 0 9 1
A getMultiFactorAuthProtectedBackendResources() 0 4 1
A getMultiFactorAuthProtectedStorefrontResources() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Glue\MultiFactorAuth;
11
12
use Spryker\Glue\MultiFactorAuth\MultiFactorAuthConfig as SprykerMultiFactorAuthConfig;
13
14
class MultiFactorAuthConfig extends SprykerMultiFactorAuthConfig
15
{
16
    /**
17
     * @return array<string>
18
     */
19
    public function getRestApiMultiFactorAuthProtectedResources(): array
20
    {
21
        return [
22
            'customer-password',
23
            'customers',
24
            'addresses',
25
            'carts',
26
            'checkout',
27
            'order-payments',
28
        ];
29
    }
30
31
    /**
32
     * @return array<string>
33
     */
34
    public function getMultiFactorAuthProtectedBackendResources(): array
35
    {
36
        return [
37
            'warehouse-user-assignments',
38
        ];
39
    }
40
41
    /**
42
     * @return array<string>
43
     */
44
    public function getMultiFactorAuthProtectedStorefrontResources(): array
45
    {
46
        return [];
47
    }
48
}
49