EpiserverConfig   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 11
dl 0
loc 46
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceFormType() 0 3 1
A getOperationUpdateFieldsEventEmail() 0 3 1
A getOperationUnsubscribeEventEmail() 0 3 1
A getOperationSubscribeEventEmail() 0 3 1
A getOperationSendTransactionEmail() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Shared\Episerver;
9
10
class EpiserverConfig
11
{
12
    protected const SERVICE_FORM_TYPE = 'http/form';
13
    protected const OPERATION_SEND_TRANSACTION_EMAIL = 'sendtransactionmail';
14
    protected const OPERATION_SUBSCRIBE_EVENT_EMAIL = 'subscribe';
15
    protected const OPERATION_UNSUBSCRIBE_EVENT_EMAIL = 'unsubscribe';
16
    protected const OPERATION_UPDATE_FIELDS_EVENT_EMAIL = 'updatefields';
17
18
    /**
19
     * @return string
20
     */
21
    public function getOperationSendTransactionEmail(): string
22
    {
23
        return static::OPERATION_SEND_TRANSACTION_EMAIL;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getServiceFormType(): string
30
    {
31
        return static::SERVICE_FORM_TYPE;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getOperationSubscribeEventEmail(): string
38
    {
39
        return static::OPERATION_SUBSCRIBE_EVENT_EMAIL;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getOperationUnsubscribeEventEmail(): string
46
    {
47
        return static::OPERATION_UNSUBSCRIBE_EVENT_EMAIL;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getOperationUpdateFieldsEventEmail(): string
54
    {
55
        return static::OPERATION_UPDATE_FIELDS_EVENT_EMAIL;
56
    }
57
}
58