Passed
Push — main ( fda4ea...a94ce1 )
by Gabriel
13:57
created

PaymentMethod   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 35
rs 10
wmc 5

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRegistry() 0 2 1
A getFilesDirectory() 0 3 1
A inflectManagerName() 0 3 1
1
<?php
2
3
namespace ByTIC\Payments\Mobilpay\Tests\Fixtures\Records\PaymentMethods;
4
5
use ByTIC\Payments\Models\Methods\Traits\RecordTrait as PaymentMethodTrait;
6
use Nip\Records\Record;
7
8
/**
9
 * Class PaymentMethod
10
 * @package ByTIC\Payments\Tests\Fixtures\Records\PaymentMethods
11
 */
12
class PaymentMethod extends Record
13
{
14
    use PaymentMethodTrait;
15
16
    protected $managerName = PaymentMethods::class;
17
18
    public function getRegistry()
19
    {
20
    }
21
22
//    public function inflectManagerName()
23
//    {
24
//        return PaymentMethods::class;
25
//    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getFilesDirectory()
31
    {
32
        return TEST_FIXTURE_PATH . '/files/';
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    protected function inflectManagerName()
39
    {
40
        return PaymentMethods::class;
41
    }
42
43
    /**
44
     * @return int
45
     */
46
    public function getPurchasesCount()
47
    {
48
        return 2;
49
    }
50
}
51