Passed
Push — feature/initial-implementation ( 3b7c72...40c5a6 )
by Fike
01:49
created

AbstractRangeType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getParameters() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\Mapping\Type\Infrastructure;
6
7
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\CoerceParameter;
8
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\IndexParameter;
9
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\StoreParameter;
10
11
abstract class AbstractRangeType extends AbstractType
12
{
13
    /**
14
     * @inheritDoc
15
     */
16
    public function getParameters(): array
17
    {
18
        return [
19
            IndexParameter::getInstance(),
20
            StoreParameter::getInstance(),
21
            CoerceParameter::getInstance(),
22
        ];
23
    }
24
}
25