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

Records::getModelNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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