ConstantSymbolApiModel::getModelMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
dl 6
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\ConstantSymbol;
4
5
use Fousky\Component\iDoklad\Model\Countries\CountryApiModel;
6
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
7
8
/**
9
 * @method null|string getCode()
10
 * @method null|CountryApiModel getCountry()
11
 * @method null|int getCountryId()
12
 * @method null|\DateTime getDateLastChange()
13
 * @method null|int getId()
14
 * @method null|bool getIsDefault()
15
 * @method null|string getName()
16
 *
17
 * @author Lukáš Brzák <[email protected]>
18
 */
19 View Code Duplication
class ConstantSymbolApiModel extends iDokladAbstractModel
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
20
{
21
    public $Code;
22
23
    public $Country;
24
25
    public $CountryId;
26
27
    public $DateLastChange;
28
29
    public $Id;
30
31
    public $IsDefault;
32
33
    public $Name;
34
35
    /**
36
     * @return array
37
     */
38
    public static function getModelMap(): array
39
    {
40
        return [
41
            'Country' => CountryApiModel::class,
42
        ];
43
    }
44
45
    /**
46
     * @return array
47
     */
48
    public static function getDateMap(): array
49
    {
50
        return [
51
            'DateLastChange',
52
        ];
53
    }
54
}
55