Statics   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 1
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\SearchBackend\Helpers\Statics TypeMap support
4
 *
5
 * @package Firesphere\Search\Backend
6
 * @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo
7
 * @copyright Copyright (c) 2018 - now() Firesphere & Sheepy
8
 */
9
10
namespace Firesphere\SearchBackend\Helpers;
11
12
use SilverStripe\Core\Config\Configurable;
13
14
/**
15
 * Class Statics
16
 * Typemap static helper
17
 *
18
 * @package Firesphere\Search\Backend
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 for Solr
31
     * Note that this is very Solr oriented at the moment
32
     *
33
     * @return array
34
     */
35
    public static function getTypeMap()
36
    {
37
        return static::config()->get('typemap');
38
    }
39
}
40