Passed
Push — feature/initial-implementation ( e556a2...0c2c6c )
by Fike
01:52
created

BinaryType::getParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AmaTeam\ElasticSearch\Mapping\Type;
6
7
use AmaTeam\ElasticSearch\Mapping\Parameter\DocValuesParameter;
8
use AmaTeam\ElasticSearch\Mapping\Parameter\StoreParameter;
9
10
class BinaryType extends AbstractType
11
{
12
    const ID = 'binary';
13
    const FRIENDLY_ID = self::ID;
14
15
    public function getId(): string
16
    {
17
        return self::ID;
18
    }
19
20
    /**
21
     * @inheritDoc
22
     */
23
    public function getParameters(): array
24
    {
25
        return [
26
            DocValuesParameter::getInstance(),
27
            StoreParameter::getInstance()
28
        ];
29
    }
30
}
31