Passed
Push — master ( 209f8f...1618ee )
by Gabriel
06:05
created

PurchasableRecordManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
c 0
b 0
f 0
dl 0
loc 13
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaymentsUrlPK() 0 3 1
A generateTableStructure() 0 4 1
1
<?php
2
3
namespace ByTIC\Payments\Tests\Fixtures\Records\Purchases;
4
5
use Nip\Records\AbstractModels\RecordManager;
6
7
/**
8
 * Class PurchasableRecordManager
9
 * @package ByTIC\Payments\Tests\Fixtures\Records\Purchases
10
 */
11
class PurchasableRecordManager extends RecordManager
12
{
13
    protected $primaryKey = 'id';
14
15
    public function getPaymentsUrlPK()
16
    {
17
        return 'id';
18
    }
19
20
    protected function generateTableStructure()
21
    {
22
        return [
23
            'fields' => []
24
        ];
25
    }
26
}
27