Passed
Push — master ( c002dd...7aef22 )
by Gabriel
11:20
created

PaymentMethod   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getRegistry() 0 2 1
A getPurchasesCount() 0 3 1
A getManager() 0 3 1
A getFilesDirectory() 0 3 1
A inflectManagerName() 0 3 1
1
<?php
2
3
namespace ByTIC\Payments\Tests\Fixtures\Records\PaymentMethods;
4
5
use ByTIC\Payments\Models\Methods\Traits\RecordTrait as PaymentMethodTrait;
6
use Nip\Records\AbstractModels\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
    public function getRegistry()
17
    {
18
    }
19
20
    public function getManager()
21
    {
22
        return PaymentMethods::instance();
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getFilesDirectory()
29
    {
30
        return TEST_FIXTURE_PATH . '/files/';
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    protected function inflectManagerName()
37
    {
38
        return PaymentMethods::class;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getPurchasesCount()
45
    {
46
        return 2;
47
    }
48
}
49