Statics::getTypeMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * class Statics|Firesphere\SolrSearch\Helpers\Statics TypeMap support
4
 *
5
 * @package Firesphere\Solr\Search
6
 * @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo
7
 * @copyright Copyright (c) 2018 - now() Firesphere & Sheepy
8
 */
9
10
namespace Firesphere\SolrSearch\Helpers;
11
12
use SilverStripe\Core\Config\Configurable;
13
14
/**
15
 * Class Statics
16
 * Typemap static helper
17
 *
18
 * @package Firesphere\Solr\Search
19
 */
20
class Statics
21
{
22
    use Configurable;
23
24
    /**
25
     * @var array map SilverStripe DB types to Solr types
26
     */
27
    protected static $typemap;
28
29
    /**
30
     * Get the typemap
31
     *
32
     * @return array
33
     */
34 41
    public static function getTypeMap()
35
    {
36 41
        return static::config()->get('typemap');
37
    }
38
}
39