Passed
Push — master ( 3ec6ca...f112c9 )
by Gabriel
02:46
created

Records   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTypesDirectory() 0 3 1
A registerSmartPropertyType() 0 3 1
A getModelNamespace() 0 3 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Tests\Fixtures\RecordsTraits\PdfLetters;
4
5
use ByTIC\Models\SmartProperties\RecordsTraits\HasTypes\RecordsTrait;
6
use Nip\Records\RecordManager as AbstractRecords;
7
use Nip\Utility\Traits\SingletonTrait;
8
9
/**
10
 * Class Records
11
 * @package ByTIC\Models\SmartProperties\Tests\Fixtures\RecordsTraits\PdfLetters
12
 */
13
class Records extends AbstractRecords
14
{
15
    use RecordsTrait;
16
    use SingletonTrait;
17
18
19
    protected function registerSmartPropertyType()
20
    {
21
        $this->registerSmartProperty('field', 'Type');
22
    }
23
24
    /**
25
     * @inheritDoc
26
     */
27
    public function getTypesDirectory()
28
    {
29
        return __DIR__ . DIRECTORY_SEPARATOR . 'Types';
30
    }
31
32
    /** @noinspection PhpMissingParentCallCommonInspection
33
     * @return string
34
     */
35
    public function getModelNamespace()
36
    {
37
        return 'ByTIC\Models\SmartProperties\Tests\Fixtures\RecordsTraits\PdfLetters\\';
38
    }
39
}
40