PdfLetters::generateTable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace ByTIC\DocumentGenerator\Tests\Fixtures\Models\PdfLetters;
4
5
use ByTIC\DocumentGenerator\PdfLetters\Models\PdfLetters\PdfLettersTrait;
6
use Nip\Records\RecordManager;
7
use Nip\Records\Traits\AbstractTrait\RecordsTrait as AbstractRecordsTrait;
8
use Nip\Utility\Traits\SingletonTrait;
9
10
/**
11
 * Class PdfLetter
12
 * @package ByTIC\DocumentGenerator\Tests\Fixtures\Models\PdfLetters
13
 */
14
class PdfLetters extends RecordManager
15
{
16
    use PdfLettersTrait;
17
    use SingletonTrait;
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public function getPrimaryKey()
23
    {
24
        return 'id';
25
    }
26
27
    public function generateTable()
28
    {
29
        return 'pdf_letters';
30
    }
31
32
    /**
33
     * @param $type
34
     * @return AbstractRecordsTrait
35
     */
36
    public function getParentManagerFromType($type)
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

36
    public function getParentManagerFromType(/** @scrutinizer ignore-unused */ $type)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
    {
38
        // TODO: Implement getParentManagerFromType() method.
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    protected function getCustomFieldsManagerClass()
45
    {
46
        // TODO: Implement getCustomFieldsManagerClass() method.
47
    }
48
}
49