Completed
Push — master ( 63772a...99c307 )
by
unknown
16s
created

GeneralSettingsDataType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMapperHandle() 0 4 1
A getRecords() 0 4 1
1
<?php
2
3
namespace NerdsAndCompany\Schematic\DataTypes;
4
5
use Craft;
6
use NerdsAndCompany\Schematic\Schematic;
7
use NerdsAndCompany\Schematic\Interfaces\DataTypeInterface;
8
9
/**
10
 * Schematic GeneralSettings DataType.
11
 *
12
 * Sync Craft Setups.
13
 *
14
 * @author    Nerds & Company
15
 * @copyright Copyright (c) 2015-2018, Nerds & Company
16
 * @license   MIT
17
 *
18
 * @see      http://www.nerds.company
19
 */
20
class GeneralSettingsDataType implements DataTypeInterface
21
{
22
    /**
23
     * Get mapper component handle.
24
     *
25
     * @return string
26
     */
27 1
    public function getMapperHandle(): string
28
    {
29 1
        return 'generalSettingsMapper';
30
    }
31
32
    /**
33
     * Get data of this type.
34
     *
35
     * @return array
36
     */
37 1
    public function getRecords(): array
38
    {
39 1
        return [];
40
    }
41
}
42