Statics   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 17
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTypeMap() 0 3 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