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

PaymentMethod::getManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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