ElasticMapping   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
namespace Triadev\Es\Mapping\Facade;
3
4
use Elasticsearch\Client;
5
use Illuminate\Support\Facades\Facade;
6
use Triadev\Es\Mapping\Contract\ElasticsearchMappingContract;
7
8
/**
9
 * Class ElasticMapping
10
 * @package Triadev\Es\Mapping\Facade
11
 *
12
 * @method static Client getEsClient()
13
 * @method static map(\Closure $blueprint, string $esIndex, string $esType)
14
 */
15
class ElasticMapping extends Facade
16
{
17
    /**
18
     * @return ElasticsearchMappingContract
19
     */
20 2
    protected static function getFacadeAccessor()
21
    {
22 2
        return app(ElasticsearchMappingContract::class);
23
    }
24
}
25