Completed
Push — master ( 492dbd...15a67d )
by Florian
06:14 queued 10s
created

RatePayDirectDebit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTypes() 0 8 1
1
<?php
2
/**
3
 *
4
 * NOTICE OF LICENSE
5
 *
6
 * This source file is subject to the GNU General Public License (GPL 3)
7
 * that is bundled with this package in the file LICENSE.txt
8
 *
9
 * DISCLAIMER
10
 *
11
 * Do not edit or add to this file if you wish to upgrade Payone to newer
12
 * versions in the future. If you wish to customize Payone for your
13
 * needs please refer to http://www.payone.de for more information.
14
 *
15
 * @category        Payone
16
 * @package         Payone_Settings
17
 * @subpackage      Configuration
18
 * @copyright       Copyright (c) 2018 <[email protected]> - www.fatchip.com
19
 * @author          Vincent Boulanger <[email protected]>
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.fatchip.com
22
 */
23
24
/**
25
 * Class Payone_Settings_Configuration_PaymentMethod_RatePayDirectDebit
26
 */
27
class Payone_Settings_Configuration_PaymentMethod_RatePayDirectDebit
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
28
    extends Payone_Settings_Configuration_Abstract
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
29
{
30
    /**
31
     * @return array
32
     */
33
    public function getTypes()
34
    {
35
        $constants = $this->getClassConstants('Payone_Api_Enum_RatepayDirectDebitType');
36
37
        $constants = array_flip($constants);
38
39
        return $constants;
40
    }
41
42
}
43